in reply to Reading a VERY LARGE file with SINGLE line as content!
Now I would suggest:open(DAT, $data_file) || die("Could not open file!"); print "file opened successfully!! \n";
The above will work as it processes <DAT> line by line and prints.while (<DAT>) { ...do something.... ... print if /$pattern/; # simple first attempt }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading a VERY LARGE file with SINGLE line as content!
by JavaFan (Canon) on Jul 18, 2009 at 00:36 UTC | |
by Marshall (Canon) on Jul 18, 2009 at 01:14 UTC | |
by Bloodnok (Vicar) on Jul 18, 2009 at 15:35 UTC |