in reply to determine the variable causing the error: Use of uninitialized value
$ perl -wMstrict -e 'my $myvar; print $myvar; printf "%s", $myvar' Use of uninitialized value $myvar in print at -e line 1. Use of uninitialized value $myvar in printf at -e line 1.
Could you show some code that demonstrates the problem (SSCCE)? Also, which version of Perl are you using? Update: Just to be clear, by "the problem" I mean the variable name not showing up in the warning message. (Also, s/x/myvar/g)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: determine the variable causing the error: Use of uninitialized value
by AnomalousMonk (Archbishop) on Apr 13, 2017 at 18:55 UTC | |
by ruqui (Acolyte) on Apr 13, 2017 at 19:23 UTC | |
by LanX (Saint) on Apr 13, 2017 at 19:35 UTC | |
by LanX (Saint) on Apr 15, 2017 at 01:25 UTC | |
by ruqui (Acolyte) on Apr 16, 2017 at 02:37 UTC | |
by LanX (Saint) on Apr 16, 2017 at 11:38 UTC |