in reply to Re: Trouble passing hash into function
in thread Trouble passing hash into function
If I comment out the second print and uncomment the first print, the @_ dumps fine. When I try to set %test, I get this error:sub test_parser { use Data::Dumper; #print Dumper(@_); my %test = @_; print Dumper(%test); }
I'm sending the hash from a master .pl file into the function like this:Reference found where even-sized list expected at Debugger.pm line 8.
What else could be wrong?Debugger::test_parser(\%competitors_master);
Thanks,
Doug
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trouble passing hash into function
by GrandFather (Saint) on Sep 05, 2007 at 23:13 UTC |