in reply to How do I verify what line(s) were found and deleted from a file

You can monitor the removal from within the grep operation, like so:

@file_lines = grep { if (/$player_drafted/i) { print "Removing $_ from list.\n"; 0; } else { 1 } } @file_lines;
  • Comment on Re: How do I verify what line(s) were found and deleted from a file
  • Download Code

Replies are listed 'Best First'.
Re^2: How do I verify what line(s) were found and deleted from a file
by Bennco99 (Acolyte) on Aug 17, 2007 at 03:01 UTC
    That is exactly what I needed. Thank you! Thank you
    JB