|We don't bite newbies here... much|
Is there any difference between prototype % and @ ?by LanX (Chancellor)
|on Feb 22, 2013 at 13:57 UTC||Need Help??|
LanX has asked for the
wisdom of the Perl Monks concerning the following question:
in Re: Is there a simple syntax to logically slice a hash? I used a '%' in the prototype of a grep like function
I somehow expected it to better than sub hgrep (&@) by warning if the number of passed list elements is odd.
But neither from tests nor documentation can I find any differences...
Is it just cosmetics?
UPDATE: of course I'm not talking about the documented behavior for \% or \[%]