At 02:42 PM 6/8/01 -0500, you wrote:
>I am currently making an options menu front end to prevent user error.
>Using getopt and @ARGV. The problem is that getopt yanks the first
>argument... is there anyway to get it back?
Nope, getopt doesn't yank the first argument, it only yanks options. BTW,
I find getopts to be more useful than getopt. Vide:
$ perl -MGetopt::Std -le 'getopts("a:b:c:"); print "* $opt_a * $opt_b *
$opt_c + @ARGV"' -- -a gleep -b glub -c gulp foo
* gleep * glub * gulp + foo
$ perl -MGetopt::Std -le 'getopt("abc"); print "* $opt_a * $opt_b * $opt_c
+ @ARGV"' -- -a gleep -b glub -c gulp foo
* gleep * glub * gulp + foo
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com