in reply to Re: subroutine call
in thread differences between ways of calling subroutines

I forgot one
&foo;
prototyping?

Replies are listed 'Best First'.
Re: Re: Re: subroutine call
by dga (Hermit) on Aug 04, 2001 at 00:27 UTC
    &foo;

    will call your subroutine with the @_ array set to the arguments of the caller.

    an example

    bar("a","b"); sub bar { foo(); &foo(); &foo; } sub foo { ($a, $b)=@_; print "$a, $b\n"; }
    the call to bar will now print
    ,
    ,
    a, b
    
Re: Re: Re: subroutine call (aka ... RTFM)
by dragonchild (Archbishop) on Aug 03, 2001 at 21:29 UTC
    Try doing a search on prototyping. Or, you could just click on prototyping, which will end up doing the same thing, eventually. :)

    ------
    /me wants to be the brightest bulb in the chandelier!