is slower thanopen(FILE,"<$file") || die $!; my $data = do { local $/; <FILE> }; close(FILE);
which is the true traditional slurp.open(FILE,"<$file") || die $!; my $data; { local $/; $data = <FILE> } close(FILE);
In reply to Re: Speed reading (files)
by ikegami
in thread Speed reading (files)
by kwaping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |