develooper Front page | perl.beginners | Postings from May 2008

Re: learning perl 3rd vs 4th

Thread Previous | Thread Next
From:
AndrewMcHorney
Date:
May 25, 2008 10:07
Subject:
Re: learning perl 3rd vs 4th
Hello

I have been reading files with the following command:

@source_lines = (<SOURCE_FILE>);

This has worked until I started reading some very large files. Is 
there a better way to read files? The files I am trying to read now 
are about 300 megabytes in size. The bad news is that the spec has no 
carriage returns or line feeds. We have no control over the spec. I 
need to replace a few characters in the file.

Andrew


Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About