thanks for the replies
this is what i dont get
my $data = "file.dat";
my $length = 24;
$result = GetOptions ("length=i" => \$length, # numeric
"file=s" => \$data, # string
"verbose" => \$verbose); # flag
why do we need to create variables like data and length when the arguments will be passed from command line.
here is what i want to do.
take -u user name, -p password, -s hostname:portnumber from the command like and then how will they be used with this module?
how can this parser help me in parsing the above mentioned command line arguments.
p.s: after recieving them from the command like i ll send the user name pasword for validation to the host given on the command like.
so like i want to know how using this parser will be more helpful in parsing the command line arguments. and how it will be more difficult with out using the parser?
Retitled by Steve_p from 'Getopt::Long'.