in reply to Re: Is it there, or is it not?? Quirkiness with error handling.
in thread Is it there, or is it not?? Quirkiness with error handling.
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:
# main outer( 1, qw( A Set of Args )); sub outer { my $pass = shift; &inner if $pass; } sub inner { print "inner: ", join( ' ', @_ ), "\n"; }
will print:
A Set of Args
dmm
If you GIVE a man a fish you feed him for a day
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re: Is it there, or is it not?? Quirkiness with error handling.
by tye (Sage) on Jul 12, 2002 at 20:47 UTC | |
by dmmiller2k (Chaplain) on Jul 18, 2002 at 19:45 UTC |