in reply to Is there any difference between prototype % and @ ?
From Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen, under the heading “Problems with Regular Prototypes”:
Since we’re having so much fun, let’s move on to “%”. This “prototype” means what? That we’re expecting a hash? Not at all! In fact, it is completely identical to a “prototype” of just “@”. Everything I said about “@” is true for “%”, because they are the same! You can’t get any type checking here. It doesn’t even bother to check whether you have an even number of arguments.
Not official documentation, exactly, but — well, the author did co-write the Camel Book ;-)
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there any difference between prototype % and @ ?
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 | |
by LanX (Saint) on Feb 22, 2013 at 22:00 UTC | |
|