in reply to Remove a line of text
What this does is read in a line from ACTLIST, assign it to $TheLine, then assigns $TheLine to the @WordList array. However, each iteration causes @WordList to get overwritten with the new value of $TheLine, which is probably not what you want.while (<ACTLIST>) { $TheLine = $_; @WordList = "$TheLine"; }
Try this instead:
or, even better:while (<ACTLIST>) { push @WordList, $_; }
...which'll do the same thing.@WordList = (<ACTLIST>);
Gary Blackburn
Trained Killer
|
|---|