if (my $x = f() and g($x)) { ... } [download]
In reply to scope of my $x in if statements by perl5ever