in reply to Re^3: processing huge files
in thread processing huge files

yes, that works fine, but if you try to add the  mode option, at least for me it ignored the RO nature and threw the error.

Replies are listed 'Best First'.
Re^5: processing huge files
by izut (Chaplain) on Aug 02, 2005 at 22:21 UTC
    The cause of this error is that you opened it as O_RDONLY. When you pop() the arrayref, Tie::File tries to remove that line from file too. Do not use pop() to ignore the first line. Iterate starting from the end of your header as my first post or use some regex to ignore unwanted lines


    Igor S. Lopes - izut
    surrender to perl. your code, your rules.