in reply to ARGV array getting shifted
ARGV array getting shifted
No such a thing as a "ARGV array". That's @ARGV.
A have a very short perl script that executes OO Perl Modules that I created.
This is irrelevant.
I have the perl script pass argument #1 to a method and it isn't there.
What? The method or the first argument. Argument to what? To the script?
I added more arguments and found that the first argument is getting shifted off
If you're shifting it, than that's to be expected. Perhaps you're doing a shift with no arguments, somewhere, and you forgot that it "evaluates to" shift @_ within a sub and to shift @ARGV outside. Hard to say without seeing any code, anyway.
I switched my code to have it in the PM, but same undef issue.
Huh?!?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ARGV array getting shifted
by nbhar (Novice) on May 07, 2007 at 17:10 UTC | |
by Joost (Canon) on May 07, 2007 at 19:54 UTC | |
by blazar (Canon) on May 07, 2007 at 17:51 UTC |