Geo-WeatherNWS
view release on metacpan or search on metacpan
lib/Geo/WeatherNWS.pm view on Meta::CPAN
Instead of having to use the built-in server/user/password/directory
that the module used to use, you can provide your own. This way if
you have access to a mirror server of the data, you can specify the
servername, account information and directory where the files exist.
If you don't have access to a mirror, then you don't have to specify
anything. The old server, etc., are still automagically selected.
Also new in this release is that the getreport function now returns
an error code and the FTP error message if anything goes wrong.
Before this was added, if the server was busy or the stations text
file was missing you couldn't tell what happened.
Another new feature is the template system. You can specify a file
with the settemplatefile function. This file is read in and all of
the places in the file where the code sees %%name%% will be replaced
with the proper values. An example template has been included.
The template uses the same names as the hashref returned by the
getreport function.
And, same as previous releases, the getreport function retrieves
( run in 0.249 second using v1.01-cache-2.11-cpan-87723dcf8b7 )