in reply to How do I verify what line(s) were found and deleted from a file
@file_lines = grep { if (/$player_drafted/i) { print "Removing $_ from list.\n"; 0; } else { 1 } } @file_lines;
|
|---|
| 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 |