Don't ask to ask, just ask | |
PerlMonks |
Re: Subroutine Referencesby tcf22 (Priest) |
on Dec 07, 2003 at 22:35 UTC ( [id://312982]=note: print w/replies, xml ) | Need Help?? |
Lets you call it with an array ref like $SubRef->(\@Array , $Scalar); And I believe the answer is that an array ref is actually scalar, so the prototyping allows it whether it is sub(\@$) or sub($$) UPDATE: I was wrong. Just ignore me. - Tom
In Section
Seekers of Perl Wisdom
|
|