M
Morfys
Hi,
When running perl with the -w option, and executing a "print'" with
about 30 variables, I get
Use of uninitialized value in print at at ./temp.pl line 9.
Is there any way to make perl report the exact variable name (out of
the 30) that is not initialized?
' use diagnostics;' doesn't help.
For various reasons, writings 30 statements of the form
defined ($var) or warn "var is undefined";
is difficult/a pain in my case.
Thanks.
When running perl with the -w option, and executing a "print'" with
about 30 variables, I get
Use of uninitialized value in print at at ./temp.pl line 9.
Is there any way to make perl report the exact variable name (out of
the 30) that is not initialized?
' use diagnostics;' doesn't help.
For various reasons, writings 30 statements of the form
defined ($var) or warn "var is undefined";
is difficult/a pain in my case.
Thanks.