alw has asked for the wisdom of the Perl Monks concerning the following question:
It works fine on a 6MB file but when I try it on a 30MB var/log/messages file it just hangs with 99 % cpu usage and never returns. These are all just plain text files. I am using winxp activestate perl 5.8.8. Is there some restriction(hardware or software) that I am running into? I read about recompiling Perl with some large_file_size option. Would that be the case here and if so does activestate have that version? The 30MB file has about 300,000 lines of text, which doesn't seem too large to me. Thankstie @tied_mess,'Tie::File',$filename,autochomp=>0; print $#tied_mess;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file size limit with Tie::File
by BrowserUk (Patriarch) on Apr 08, 2007 at 20:03 UTC | |
by alw (Sexton) on Apr 08, 2007 at 21:16 UTC | |
by davido (Cardinal) on Apr 08, 2007 at 22:16 UTC | |
by graff (Chancellor) on Apr 09, 2007 at 00:13 UTC | |
by Limbic~Region (Chancellor) on Apr 09, 2007 at 19:14 UTC | |
|
Re: file size limit with Tie::File
by dave_the_m (Monsignor) on Apr 08, 2007 at 22:14 UTC | |
by alw (Sexton) on Apr 10, 2007 at 23:40 UTC |