Unix Man page/Perldoc/Info page, English-Chinese Dictionary,
Chinese-English Dictionary
Weather::Simple(3pm) User Contributed Perl Documentation Weather::Simple(3pm) NAME Weather::Simple - Simple Wrapper around the Weather::Cached API SYNOPSIS use Data::Dumper; use Weather::Simple; # define parameters for weather search my %params = ( 'cache' => '/tmp/weathercache', 'partner_id' => 'somepartnerid', 'license' => '12345678', 'place' => 'Heidelberg', ); # instantiate a new weather.com object my $simple_weather = Weather::Simple->new(%params); my $weather = $simple_weather->get_weather(); print Dumper($weather); DESCRIPTION Weather::Simple is a very high level wrapper around Weather::Cached. CONSTRUCTOR new(hash or hashref) This constructor takes the same hash or hashref as Weather::Cached does. Please refer to that documentation for further details. Except from the Weather::Cached' parameters this constructor takes a parameter place which defines the location to search for. It is not possible to provide the location to search to the get_weather() method! METHODS get_weather() This method invokes the Weather::Cached API to fetch some weather information and returns an arrayref containing one or many hashrefs with some high level weather information. If no weather data is found for a location, it returns undef. SEE ALSO See also documentation of Weather::Com and Weather::Cached. AUTHOR Thomas Schnuecker, <thomas AT schnuecker.de> COPYRIGHT AND LICENSE Copyright (C) 2004 by Thomas Schnuecker This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The data provided by weather.com and made accessible by this OO inter- face can be used for free under special terms. Please have a look at the application programming guide of weather.com (http://www.weather.com/services/xmloap.html) perl v5.8.8 2004-08-25 Weather::Simple(3pm) |