in reply to shift doesnt shift
Is the shift statement inside a subroutine or block of any kind?
If it is, it's shifting off @_ instead of @ARGV.
perldoc -f shift ... If ARRAY is omitted, shifts the @_ array within the lexical scope of subroutines and formats, and the @ARGV array at file scopes ...
/J
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: shift doesnt shift
by joec_ (Scribe) on Nov 27, 2008 at 14:04 UTC | |
by vlsimpson (Beadle) on Nov 27, 2008 at 20:31 UTC | |
by jplindstrom (Monsignor) on Nov 28, 2008 at 12:19 UTC |
In Section
Seekers of Perl Wisdom