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); }
In reply to Re: Passing Reference of a Hash to a method
by rrwo
in thread Passing Reference of a Hash to a method
by piyush.shourie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |