|
|
| P is for Practical | |
| PerlMonks |
Re^2: Detecting an undefined hash keyby LesleyB (Friar) |
| on Oct 01, 2008 at 18:13 UTC ( [id://714859]=note: print w/replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||