"be consistent" | |
PerlMonks |
Re: Reference curiosity?by borisz (Canon) |
on Apr 23, 2006 at 17:31 UTC ( [id://545137]=note: print w/replies, xml ) | Need Help?? |
your first version 'print 1 2 3' from the global hash hash. It works also fine without my ($hash)=@_; .
the second one can not print 1 2 3, since it want s to print from a hash, but your hash is a hashref.
Boris
In Section
Seekers of Perl Wisdom
|
|