in reply to My habitual errors

Mine is forgetting semicolons after inline blocks
$foo = sub { my $var = shift; ... } for my $bar(@quux) { ... }

since blocks which aren't inline don't need semicolons.

Happens often while making named subroutines into anonymous ones, and also with do blocks. Often I get bitten for omitting a semicolon on the last line in a block:

sub foo { my $ret = bar($_[0]) * quux($_[1]) }

Later, I add more statements

sub foo { my $ret = bar($_[0]) * quux($_[1]) $ret *= 1024 }

bummer...!

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}