That'll teach me to not to cut&paste without thinking.
Add () after the call
my $weatherData = weather();
I am assuming that sub weather{...} is in the same file as the calling sub? It's difficult to tell from your post.
In reply to Re: Re: Re: Parsing Code
by BrowserUk
in thread Parsing Code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |