melguin has asked for the wisdom of the Perl Monks concerning the following question:
$info = $db_info->get_info($ID);
However, that doesn't work. So, I changed it to this to troubleshoot my problem:sub get_info { my ($class,%db_info,$ID) = @_;
$stuff prints out "Database=HASH(0x804b620)". $ID prints out "1" (like it should). It seems that both the $class and %db_info are getting put together. From what I've read, and the examples I've seen, that doesn't make sense.sub get_info { my ($stuff,$ID) = @_; print "\nstuff = ".$stuff."\nID =".$ID."\n\n";
Why is this happening, and what can I do to handle it properly? As always, pointers to relevant docs are very welcome.
melguin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange args format in module sub
by Chmrr (Vicar) on Sep 16, 2001 at 07:02 UTC | |
|
Re: strange args format in module sub
by wog (Curate) on Sep 16, 2001 at 06:58 UTC | |
|
Re: strange args format in module sub
by seesik (Initiate) on Sep 16, 2001 at 07:03 UTC | |
|
Re: strange args format in module sub
by geektron (Curate) on Sep 16, 2001 at 07:00 UTC |