in reply to Newbie to PERL removing text from array
Assuming that what you are showing us are two different array elements, the following might work (untested):
But I've no idea how that works out of the rest of your file.foreach (@array) { s/^[^0-9]*[0-9]+\s+//; s/\.//g; s/Yes [0-9] //; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Newbie to PERL removing text from array
by Anonymous Monk on Feb 15, 2012 at 05:47 UTC |