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
In reply to Re: modify the contents of an array
by Skeeve
in thread modify the contents of an array
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |