It won't affect your IO count but
my $rec;foreach(@test){$rec.=$_."\n";}
Is much better coded as
my $rec = join "\n", @test;
roughly 3 times faster on 1000 elements.
In reply to Re^5: How can you sysread an entire file?
by BrowserUk
in thread How can you sysread an entire file?
by NeilF
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |