Speaking of hideous, the functional approach written in Perl:
having defined x() asif (my $x = x(f(), \&g)) { ... }
sub x { my ($x, $g) = @_; $x && $g->($x) }
In reply to Re^2: scope of my $x in if statements
by ikegami
in thread scope of my $x in if statements
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |