Thanks for the reply Jeff, but what I need to do is assign variables based on the first 5 lines and then push the remaining lines of the file into an array. Any suggestions?
Anyway,reading all the contents of a large file to an array should consume too much physical memory.Could you take a look at Tile::File module?see here:
http://search.cpan.org/~mjd/Tie-File-0.96/lib/Tie/File.pm -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>