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?!?
In reply to Re: ARGV array getting shifted
by blazar
in thread ARGV array getting shifted
by nbhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |