in reply to Re^4: Warnings on unused variables?
in thread Warnings on unused variables?
In to the other class of examples, I just tested that #1 in fact does use $foo++, and warnings::unused handles it properly:
That's odd.
Does eval '$'.'foo++' issue a warning for $foo? (It shouldn't)
Does eval 'print q{$foo++}' issue a warning for $foo? (It should)
Does eval '$cond ? $foo : $bar' issue a warning for $foo and $bar? (It shouldn't)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Warnings on unused variables?
by AZed (Monk) on Sep 28, 2008 at 00:46 UTC | |
by ikegami (Patriarch) on Sep 28, 2008 at 00:58 UTC | |
by AZed (Monk) on Sep 28, 2008 at 02:01 UTC | |
by ikegami (Patriarch) on Sep 28, 2008 at 02:46 UTC | |
by AZed (Monk) on Sep 28, 2008 at 05:33 UTC | |
| |
by ikegami (Patriarch) on Sep 28, 2008 at 00:52 UTC |