D
Dan Jacobson
Perhaps if one of you know the exact bug, you could file a report for
me.
$ cat /tmp/v
#!/usr/bin/perl -ws
if ($xyz) { print "$xyz\n" }
if ($g) {print 66} else {print 55}
$ /tmp/v
Name "main::g" used only once: possible typo at /tmp/v line 3.
55
because $xyz is used twice, the perlrun page authors wouldn't have
triggered the bug when adding -w to their example.
The bug is: g shouldn't be warned about.
Quick hack:
if ($g) {print 65+$g} else {print 55}
me.
$ cat /tmp/v
#!/usr/bin/perl -ws
if ($xyz) { print "$xyz\n" }
if ($g) {print 66} else {print 55}
$ /tmp/v
Name "main::g" used only once: possible typo at /tmp/v line 3.
55
because $xyz is used twice, the perlrun page authors wouldn't have
triggered the bug when adding -w to their example.
The bug is: g shouldn't be warned about.
Quick hack:
if ($g) {print 65+$g} else {print 55}