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)
In reply to Re^5: Warnings on unused variables?
by ikegami
in thread Warnings on unused variables?
by AZed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |