![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Sub prototypes...by bmccoy (Beadle) |
on Dec 21, 2001 at 23:38 UTC ( #133846=note: print w/replies, xml ) | Need Help?? |
Think about the order of execution when you have a subroutine executing as an argument to another subroutine. If you have a sub that is expecting an array as argument, and instead you give it a sub that returns an array, like this:
In what order do you expect them to be executed? I think this is what is happening here, the catch is being executed first since it is an argument to try. -- Brett Go not to the Elves for counsel, for they will say both no and yes
In Section
Seekers of Perl Wisdom
|
|