in reply to Re^2: problem with deleting a row
in thread problem with deleting a row
$file = "test.txt"; print "Enter the username you want to remove from the information.txt +file\n"; $user = <STDIN>; open( FILE, $file) or die "cannot open > test.txt: $!"; while (<FILE>) { chomp; @array = <FILE>; @a = grep (!/^[$user]/, @array); print @a; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: problem with deleting a row
by Laurent_R (Canon) on Nov 21, 2013 at 19:03 UTC | |
|
Re^4: problem with deleting a row
by brianMonk (Initiate) on Nov 21, 2013 at 19:56 UTC | |
by Laurent_R (Canon) on Nov 23, 2013 at 11:57 UTC |