in reply to command line arguments

Hi Sravani
The following takes a single argument from command line and shows an usage message upon wrong input

use Getopt::Long; sub usage { print "\nUsage: thisProgram -f <expectedUserInput>\n"; exit(1); } GetOptions("f=s=>\$userInput"); &usage() if (!defined($userInput));
Cheers,
Gaurav
"Wisdom begins in wonder" - Socrates, philosopher