in reply to Re:(2) replace @ARGV args with Getopt::Long switches (graci)
in thread replace @ARGV args with Getopt::Long switches

Minor point, ybiC and no mua-hahaha this time.

Getopt::Long accepts all unique abreviations to the option, so you don't need to specify your synonym. See Getopt::Long for details, but these should work with 'infile=s'=>\$foo, 'bear=i'=>\$bar...:

script.pl --infile Myfile -bear 666 script.pl -i Myfile -b 5
Hope this helps,

Jeroen
"We are not alone"(FZ)