Hi Monks,
I am trying to read 5GB(file size) text file and search some content in that file. But I got "Out of memory" error.
Could you please provide your suggestion.
open FIN, $inputFile or die $!; while (my $lines = <FIN>) { chomp $sword; unless ($lines =~ /$sword/i) { print "$sword\n"; } } close FIN;
thanks,
PerlUser.
In reply to Out of memory error while Reading 5GB text file by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |