Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I call a perl .pl file with command line arguments. When this file starts to execute, I can retrieve the passed values, if I do it from the main program. If I try to do it from a subroutine in a package, I can't. I'd really rather do it from the subroutine. Is there a way to fix this? Thanks, John Bobinyec
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scope of ARGV
by ikegami (Patriarch) on Nov 28, 2011 at 18:40 UTC | |
by Anonymous Monk on Nov 28, 2011 at 19:36 UTC | |
|
Re: Scope of ARGV
by davido (Cardinal) on Nov 28, 2011 at 18:28 UTC | |
|
Re: Scope of ARGV
by toolic (Bishop) on Nov 28, 2011 at 18:39 UTC | |
|
Re: Scope of ARGV
by chromatic (Archbishop) on Nov 28, 2011 at 18:33 UTC |