Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Writing to command line when prompted

by sschneid (Deacon)
on Jun 28, 2002 at 14:42 UTC ( [id://178023]=note: print w/replies, xml ) Need Help??


in reply to Writing to command line when prompted

Options entered on the command line are stored in the @ARGV array, so you could hypothetically access the two filenames perl script.pl file_in file_out with $ARGV[0] and $ARGV[1]. If you are using more than just the two filenames (or plan on implementing switched options, etc) I would highly suggest taking a look at GetOpt::Long.

scott.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://178023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found