in reply to using 'my $var' vs. 'my($var)'

ack! forgive the spam - i just needed to rtfm...

my $var = shift(@_); # ;) <BR<BR<BR
decnartne ~ entranced

Replies are listed 'Best First'.
RE: RE: using 'my $var' vs. 'my($var)'
by KM (Priest) on Oct 26, 2000 at 18:18 UTC
    my $var = shift(@_);

    You can use the shorter, more idiomatic:

    my $var = shift;

    The @_ is implied.

    Cheers,
    KM