lampros21_7 has asked for the wisdom of the Perl Monks concerning the following question:
I have the "Programming Perl" book and i have also looked around different tutorials but i can't understand how @_ works. Does it make something like:sub invoke_contents { my($webcrawler, $hook, $url, $response, $structure) = @_;
as in to store everything in the hook on its own? I wrote "our $contents = $structure;" in this sub so that to make the $structure variable global and be ale to use it outside the sub so as to store the content in an HTML file. Any idea if i could do what i want to do in a better way or any way that would work? Help is greatly appreciated.$webcrawler = @_; $hook=@_; . . . $structure=@_;
20050718 Edit by ysth: code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting information from hooks
by ikegami (Patriarch) on Jul 18, 2005 at 22:40 UTC | |
|
Re: Extracting information from hooks
by Anonymous Monk on Jul 18, 2005 at 22:46 UTC |