in reply to (MeowChow) Re2: Unusual 'constant in void context' warnings
in thread Unusual 'constant in void context' warnings
I am not sure it is a bug.
Does this not fall under the "if it looks like a function..." rule?
Nothing was getting stored anywhere so Perl discarded it.
If you were to change to
You don't get output. But you don't get the error.my $a = '0'; print "3f\n" if $a;
|
|---|