Hi,
i've problem with reading arguments on command line. I don't know, how do I distinguish, if the user entered some argument with one or two dashes.
I try:
while($ARGV[$i])
{
if($ARGV[$i] == '--anything')
{
print "The argument with '--'.\n";
}
else
{
print "The argumentwith '-'.\n";
}
$i++;
}
But if the input is --anything or -anything, the output is always The argument with '--'. But why??? :/
I tried also the GetOpt::Long module, but no result :/
Thanks for any advice.