Cheers, Gauravuse Getopt::Long; sub usage { print "\nUsage: thisProgram -f <expectedUserInput>\n"; exit(1); } GetOptions("f=s=>\$userInput"); &usage() if (!defined($userInput));
In reply to Re: command line arguments
by megaurav2002
in thread command line arguments
by sravani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |