in reply to Re^3: and multiple statements
in thread and multiple statements

Required? I don't follow.
if (!open my $fh, "<", "filename") { warn "Whatever"; return; }
is perfectly valid code. There's no requirement that that is to be written as
open my $fh, "<", "filename" or do {warn "Whatever"; return;};

Replies are listed 'Best First'.
Re^5: and multiple statements
by ikegami (Patriarch) on Jun 06, 2010 at 23:03 UTC
    Perfectly valid code, but perfectly useless because you can't use the file handle you just opened. You'd have to move the rest of the code into the else body.