in reply to Passing Reference of a Hash to a method
You were assigning a list of arguments to a scalar, which was a scalar of the number of arguments ("1"). The ref of a non-reference is blank. Try this:
sub traverseHash { my $hRef=shift; print ref($hRef); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing Reference of a Hash to a method
by davorg (Chancellor) on Nov 24, 2004 at 06:34 UTC |