in reply to Re^3: syntax of map operator
in thread syntax of map operator

I'm very glad EXPR if COND doesn't provide a lexical scope. That allows me to write:
local $dbh->{AutoCommit} = 0 if !$already_in_a_transaction;
I once had a cow orker (who thinks he's one of the smartest programmers in the world) rewrite that as
if (!$already_in_a_transaction) { local $dbh->{AutoCommit} = 0; }

Replies are listed 'Best First'.
Re^5: syntax of map operator
by Anonymous Monk on Jan 25, 2010 at 04:15 UTC
    You should wrap one more if around that just to be sure.