in reply to Re: Re: subroutine call
in thread differences between ways of calling subroutines
&foo;
will call your subroutine with the @_ array set to the arguments of the caller.
an example
the call to bar will now printbar("a","b"); sub bar { foo(); &foo(); &foo; } sub foo { ($a, $b)=@_; print "$a, $b\n"; }
, , a, b
|
|---|