You need to return the data gathered in sub weather ie. change the last line to be:
return $weather;
You then need to capture that return value and assign it to something in the calling program ie.
my $weatherData = &weather;
Then you can do whatever you need to with the data.
In reply to Re: Parsing Code
by BrowserUk
in thread Parsing Code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |