Renée Bäcker schreef: > Dr.Ruud: >> The "if (1) {}" can be optimized away, but >> should at least leave a (scoping) block. > > B::Deparse says, that there is a do block: > > rbaecker@test ~/ $ perl -MO=Deparse if.pl > use warnings; > use strict 'refs'; > do { > if (open my $fh, '/etc/passwd') { > print 'inner'; > } > }; > system "ls -l /proc/$$/fd"; Oops, sorry for the noise. -- Affijn, Ruud "Gewoon is een tijger."Thread Previous | Thread Next