ghenry has asked for the wisdom of the Perl Monks concerning the following question:
Dear Master Monks,
In Learning Perl I see my $blah = @_; and in the Camel, I see my $blah = shift;
Why the difference? Do they not do the same thing?
Update: I meant my ($blah) = @_;
Thanks,
Gavin.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutines: @_ and shift
by gaal (Parson) on May 14, 2005 at 09:18 UTC | |
|
Re: Subroutines: @_ and shift
by mlh2003 (Scribe) on May 14, 2005 at 13:32 UTC | |
|
Re: Subroutines: @_ and shift
by tlm (Prior) on May 14, 2005 at 11:04 UTC | |
|
Re: Subroutines: @_ and shift
by polettix (Vicar) on May 14, 2005 at 12:23 UTC | |
by ghenry (Vicar) on May 14, 2005 at 12:26 UTC | |
|
Re: Subroutines: @_ and shift
by thcsoft (Monk) on May 14, 2005 at 10:26 UTC | |
|
Re: Subroutines: @_ and shift
by johnnywang (Priest) on May 15, 2005 at 00:58 UTC | |
|
Re: Subroutines: @_ and shift
by sh1tn (Priest) on May 14, 2005 at 09:36 UTC |