Marcos Lorenzo <[EMAIL PROTECTED]> wrote [5:10pm +0100] ML > I've been trying for an hour or so to use Getopt::Long, but I just don't ML > get it... I've been reading FAQ's & docs but I need some more examples to ML > know how it works. ML > ML > Well, I want to process arguments like: ML > ML > perl command.pl arg_needed [ --flag1 one=something two=otherthing | --flag2 | --flag3 ] ML > ML > and I get: ML > ML > $var=arg_needed ML > $one=something ML > $two=otherthing ML > ML > ML > How can I achieve this? ML > ML > TIA, ML > m4c.
OK, more info: I have a script with: my %ifconfig=(); GetOptions(\%ifconfig, "set=s%"); while (($clave,%valor)= each %ifconfig){ print "\t$clave\t->\n"; while (($clave2,$valor2)=each %valor){ print "\t\t$clave2\t->\t$valor2\n"; } } And I run: c:\temp>perl command.pl -s dasdas=dasdas set -> HASH(0x1c2513c) -> Why I can't get set -> dasdas -> dasdas ??? TIA, m4c. __________________________________________________________ Marcos Lorenzo de Santiago (Labs Technician) Departament of Telematic Engineering University Carlos III Av.Universidad 30 Leganés (Madrid). Torres Quevedo Building 4.1A01 E-mail: [EMAIL PROTECTED], Telephone: (+34)91-624-8757 Homepage: http://www.it.uc3m.es/marcos __________________________________________________________ _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs