Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

validating the command line input

by Rash_10oct (Initiate)
on Mar 06, 2013 at 07:05 UTC ( [id://1021964]=perlquestion: print w/replies, xml ) Need Help??

Rash_10oct has asked for the wisdom of the Perl Monks concerning the following question:

hiii... I am a newbie to this forum and perl script as well. i was wondering how to validate the command line input.. for e.g...i want to check that if the file entered by the user is valid, then the script should perform its action. otherwise a message "please enter a valid file name" should be displayed. Please suggest..

Replies are listed 'Best First'.
Re: validating the command line input
by kielstirling (Scribe) on Mar 06, 2013 at 07:59 UTC
Re: validating the command line input
by Anonymous Monk on Mar 06, 2013 at 07:29 UTC
      Wholly accurate, if a bit "RTFM".
Re: validating the command line input
by clueless newbie (Curate) on Mar 06, 2013 at 12:51 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2025-03-22 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (63 votes). Check out past polls.