Re: Problem using Getopts package

2004-02-11 Thread R. Joseph Newton
"Randy W. Sims" wrote: > On 2/11/2004 9:23 AM, Wiggins d Anconia wrote: > > > Actually we can emphasize that 'need' a bit to a 'cannot'. 'use' *must* > > take a bareword. > > unless it's in an eval ;-) > > perl -Mstrict -we "my $m='Cwd';eval qq(use $m);print cwd();" Not really. In the example a

Re: Problem using Getopts package

2004-02-11 Thread Randy W. Sims
On 2/11/2004 9:23 AM, Wiggins d Anconia wrote: Actually we can emphasize that 'need' a bit to a 'cannot'. 'use' *must* take a bareword. unless it's in an eval ;-) perl -Mstrict -we "my $m='Cwd';eval qq(use $m);print cwd();" perldoc -f use http://danconia.org -- To unsubscribe, e-mail: [EMAI

Re: Problem using Getopts package

2004-02-11 Thread Randy W. Sims
On 02/11/04 06:33, Harshal Borade wrote: I am getting errors when I try to get command line parameters. For example this small code doesn't work on my machine. # #!/usr/bin/perl -w use 'Getopt::Std'; getopt('de'); print "U have used d ", if $opt_d; print "U h