LanX has asked for the wisdom of the Perl Monks concerning the following question:
hi
in Re: Is there a simple syntax to logically slice a hash? I used a '%' in the prototype of a grep like function
sub hgrep (&%)
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?
Cheers Rolf
UPDATE: of course I'm not talking about the documented behavior for \% or \[%]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Is there any difference between prototype % and @ ?
by Athanasius (Archbishop) on Feb 22, 2013 at 14:07 UTC | |
by LanX (Saint) on Feb 22, 2013 at 14:12 UTC | |
by AnomalousMonk (Archbishop) on Feb 22, 2013 at 20:33 UTC | |
by LanX (Saint) on Feb 22, 2013 at 20:52 UTC | |
by BrowserUk (Patriarch) on Feb 22, 2013 at 21:57 UTC | |
| |
Re: Is there any difference between prototype % and @ ?
by BrowserUk (Patriarch) on Feb 22, 2013 at 14:12 UTC |
Back to
Seekers of Perl Wisdom