gohaku has asked for the wisdom of the Perl Monks concerning the following question:
however, if I switch the arguments, the code works%URLS = (); .. #code # add elements to hash .. .. sub printurls() { my (%URLS,$title) = @_; ... #code # print hash elements.... ... }
I was curious why this happened.sub printurls() { my ($title,%URLS) = @_; ... #code # print hash elements.... ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash of Lists Subroutine Problem
by jasonk (Parson) on Feb 23, 2003 at 22:42 UTC | |
|
Re: Hash of Lists Subroutine Problem
by grantm (Parson) on Feb 23, 2003 at 21:59 UTC |