You can access the command line parameters directly without any module
with @ARGV.
Not sure if this helps.
myScript -f1 -f2
Something like this might work:
for ( $i = 0; $i < [EMAIL PROTECTED] - 1; $i += 2 ) {
hash{"AGV[$i]"} = AGV[$i + 1];
}
print "FIle 1: $hash{'-f'}";
On 3/13/07, brajesh
>
>Hi all,
>
>I was trying to write a script. I wanted to use multiple characters in
>command line switches.
>For example
>myScript -f1 -f2
>
>now getopt or getopts allows only for single character switches (please
>correct me if its not true).
>Is there any module which will allow my to have mu
Hi all,
I was trying to write a script. I wanted to use multiple characters in
command line switches.
For example
myScript -f1 -f2
now getopt or getopts allows only for single character switches (please
correct me if its not true).
Is there any module which will allow my to have multiple chara