note
Anonymous Monk
What all these wise monks forgot to tell you is how they arrived at the answer :)<CODE>
perl -MO=Deparse,-p
$down="false";
open (FH, $log) || $down = "true";
__END__
Can't modify logical or (||) in scalar assignment at - line 2, near ""true";"
- had compilation errors.
($down = 'false');
((open(FH, $log) || $down) = 'true');
</CODE>
[cpan://B::Deparse]
310407
310407
7