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: Beginner: Re: [digioleg54] How can I use @ARGV: Edit Log



FishMonger
Veteran / Moderator

Aug 24, 2016, 1:40 PM


Views: 4194
Re: [digioleg54] How can I use @ARGV

Arrays are 0 indexed. The first element is at index 0 not 1.

Code
my $file = $ARGV[0];

or

Code
my $file = shift @ARGV;



(This post was edited by FishMonger on Aug 24, 2016, 1:41 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Aug 24, 2016, 1:41 PM


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

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