Problems? Is your data what you think it is? | |
PerlMonks |
Re^5: Preferred technique for named subroutine parameters?by LanX (Saint) |
on May 22, 2009 at 22:06 UTC ( [id://765763]=note: print w/replies, xml ) | Need Help?? |
I've no possibility to test it ATM, but I think the point is that the hash-refs are passed unchanged into the function. Your right that after my %args = @_; it will be stringified, but at least they can still be found unchanged in @_. The crucial problem about stringified refs is that normally you have no means to tell which ref corresponds to HASH(0x225398), but in this case you have at least the possibility from within the function to search @_ (or to create a second hash) to find it out!
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|