CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [digioleg54] I am loosing value of my argument: Edit Log



FishMonger
Veteran / Moderator

Jul 21, 2016, 10:23 AM


Views: 14827
Re: [digioleg54] I am loosing value of my argument

What version of perl are you using and what version of Getopt::Long?


Quote
I catch $job_queue=pop(@ARGV);

That's a bad way to handle these types of options/arguments.

What is the output of dumping @ARGV prior to using pop or shift?

Code
print Dumper \@ARGV;



(This post was edited by FishMonger on Jul 21, 2016, 10:26 AM)


Edit Log:
Post edited by FishMonger (Veteran) on Jul 21, 2016, 10:26 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives