hello,
I use getopt but i've 2 variables begin with the same character;
It is possible with getopt to choose another character;
I explain
i've this variables
infile
inputfile
can i use the character "n" for the variable iNputfile
si i call my script like this
test.pl -i a.txt -n b.txt ?
thanks
I use getopt but i've 2 variables begin with the same character;
It is possible with getopt to choose another character;
I explain
i've this variables
infile
inputfile
can i use the character "n" for the variable iNputfile
si i call my script like this
test.pl -i a.txt -n b.txt ?
Code:
use Getopt::Long;
my $infile ;
my $inputfile;
$result = GetOptions ("infile=s" => \$infile,
"inputfile=s" => \$data,
);
thanks