Missing something with Getopt::Std
- From: "sunckell" <sunckell@xxxxxxxxx>
- Date: 2 Dec 2005 11:27:17 -0800
Hello all,
I am trying to pass an arguement to a script I have but for some
reason Getopt::Std is not grabbing the value. I am also using
Config::IniFiles.
Is there something in the perldoc that I am missing about passing a
'0' (zero) from a command line perameter?
getopts('c:D:F:L:s:d:hV', \%opts);
$log_debug = ($opts{'L'} ? $opts{'L'} : $cfg->val('LOGGING',
'debug'));
if $cfg->val('LOGGING', 'debug') is set as 0 in the ini file, I can
pass a '1' as -L and the value is set as '1'. But if the value in the
ini file is set to 1, I cannot override it if I use -L 0 at the command
line.
Can anyone offer any suggestions about passing a '0' from the
commandline?
Thanks,
sunckell....
.
- Follow-Ups:
- Re: Missing something with Getopt::Std
- From: Paul Lalli
- Re: Missing something with Getopt::Std
- From: usenet
- Re: Missing something with Getopt::Std
- Prev by Date: Convert date to timestamp
- Next by Date: RE: Convert date to timestamp
- Previous by thread: Convert date to timestamp
- Next by thread: Re: Missing something with Getopt::Std
- Index(es):
Relevant Pages
|