in reply to Delete a line from a file using Tie::File

Replace your entire for block with:

@file = grep { ! /matching_line/ } @file;

-- Ken

Replies are listed 'Best First'.
Re^2: Delete a line from a file using Tie::File
by Anonymous Monk on Nov 02, 2010 at 01:18 UTC
    Thanks much Ken!
      The above solution worked but it takes much time to process it.. Looks like it need more memory..Is there any other way I can delete an element from a Tie::File array?