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 reply to Re^2: Detecting an undefined hash key
by LesleyB
in thread Detecting an undefined hash key
by LesleyB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |