in reply to Parsing Code
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing Code
by Anonymous Monk on Sep 17, 2002 at 19:34 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2002 at 19:42 UTC | |
by Anonymous Monk on Sep 17, 2002 at 20:10 UTC | |
by BrowserUk (Patriarch) on Sep 17, 2002 at 20:28 UTC | |
by fglock (Vicar) on Sep 17, 2002 at 19:46 UTC | |
by Anonymous Monk on Sep 17, 2002 at 20:16 UTC |