![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Is it there, or is it not?? Quirkiness with error handling.by dmmiller2k (Chaplain) |
on Jul 12, 2002 at 13:07 UTC ( #181254=note: print w/replies, xml ) | Need Help?? |
"... please do not call subroutines using an ampersand. Write err3() rather than &err3()."
FYI: this is a special syntax. Calling a subroutine this way from within a subroutine has the effect of passing the (remaining) arguments to the inner sub that were passed to the outer. To wit:
will print:
dmm If you GIVE a man a fish you feed him for a dayBut, TEACH him to fish and you feed him for a lifetime
In Section
Seekers of Perl Wisdom
|
|