in reply to Re: Detecting an undefined hash key
in thread Detecting an undefined hash key
Wow, wow and double wow
It would seem that s and t are indeed strange in Getopt::Std.
There is much for my simple mind to digest in all these replies and I thank you all for the tips and nudges on exists and Data::Dumper
I did think that, if one expected to use -t <value> on the command line then the expected syntax for getopt would be getopt('st:',\%opt); with the : indicating a required value for the argument.
I'll have to check the documentation on that but this did mean I thought the lack of a : would make it clear no value was being supplied for aither the s or t arguments.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Detecting an undefined hash key
by toolic (Bishop) on Oct 01, 2008 at 19:21 UTC | |
by LesleyB (Friar) on Oct 01, 2008 at 22:13 UTC | |
by pjotrik (Friar) on Oct 01, 2008 at 23:43 UTC | |
by LesleyB (Friar) on Oct 03, 2008 at 11:46 UTC |