my $text = do { ... };
is slower than
my $text; { $text = ...; }
and requires twice as much memory.
I agree that it looks nicer, and I usually use it for that reason.
In reply to Re^4: Determine whether file is dos or unix format
by ikegami
in thread Determine whether file is dos or unix format
by fritzvtb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |