On Wednesday, May 1, 2002, at 02:27 PM, Aaron Sherman wrote: > unless my $fh = $x.open { > die "Cannot open $x: $!"; > } else while $fh.getline -> $_ { > print; > } else { > die "No lines to read in $x"; > }
I think you need a better example--given that the unless clause throws an exception, the "else while" can just as easily be written as a "while", no "else". (Which I, personally, would find far clearer.) - Damien