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 have used e ", if $opt_e;
#########################################


The interpreter points out an error on the line "use
'Getopt::Std'"

You do not need to quote the module name in a use statement:


use Getopt::Std;

Regards,
Randy.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to