in reply to Re: Weird Perl Rule I'm Probably Not Following
in thread Weird Perl Rule I'm Probably Not Following

my $value1 = shift; # shift along acts on @_ so its the same as @_[0];

Not really.
shift will remove the first element from @_
@_[0] leaves it in place

  • Comment on Re^2: Weird Perl Rule I'm Probably Not Following

Replies are listed 'Best First'.
Re^3: Weird Perl Rule I'm Probably Not Following
by eric256 (Parson) on Oct 15, 2005 at 04:44 UTC

    Sorry you took that a little literaly. I meant that it filled the same position as @_[0] did in his code. Which IS true. I probably should have made that clearer.


    ___________
    Eric Hodges