in reply to Bogus warning for low priority or, or something subtle

For this sort of question I like using B::Deparse,-p:

% perl -MO=Deparse,-p 481076.pl Useless use of private variable in void context at 481076.pl line 10. use warnings; use strict 'refs'; (my $foo = 3); (my $bar = 2); ((my $baz = $foo) or $bar); print($baz); 481076.pl syntax OK
There you have it, plain as day.

Unfortunately, B::Deparse is not always accurate. Therefore, if necessary, I corroborate with B::Concise, whose output I find much harder to read than B::Deparse's, but is more accurate.

the lowliest monk

Replies are listed 'Best First'.
Re^2: Bogus warning for low priority or, or something subtle
by GrandFather (Saint) on Aug 05, 2005 at 23:12 UTC

    I seem to recall seeing mention of a way of getting more verbose error and warning messages, but can't remember how. That will earn someone a ++ :)


    Perl is Huffman encoded by design.