>Simpify syntax of C<do BLOCK> by deleting C<do> before the
>block and C<;> after it.
You can't do that. They do different things.
$n = do {
my $sum = 0;
for $i (@array) { $sum += $i }
$sum;
};
versus
$rec = {
FOO => 1.4,
BAR => "red",
};
--tom
- RFC 167 (v2) Simplify C<do BLOCK> Syntax Perl6 RFC Librarian
- Re: RFC 167 (v2) Simplify C<do BLOCK> Synta... Tom Christiansen
- Re: RFC 167 (v2) Simplify C<do BLOCK> Synta... Piers Cawley
- Re: RFC 167 (v2) Simplify C<do BLOCK> S... Tom Christiansen
