in reply to modify the contents of an array
Yes! This will create nonsense for non matching lines, like the last one. But I wanted to come up with a shorter RE ;-)chomp(@array=<DATA>); s:(..)(?!$):$1/:g for @array; print join "\n", @array, ''; __DATA__ 092205 092305 092605 nonsense
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: modify the contents of an array
by s_gaurav1091 (Beadle) on Sep 29, 2005 at 12:52 UTC | |
by Skeeve (Parson) on Sep 29, 2005 at 13:05 UTC | |
by rvosa (Curate) on Sep 29, 2005 at 19:01 UTC |