while(<DATA>) { my $i; chomp; print join('', map { $i++; "<col$i>$_</col$i>" }, split /;/)."\n"; } __ hello;this;is;a;test this;is;another;simple;test
Makeshifts last the longest.
In reply to Re^2: newbie regex question: substituting repeating occurences for different replacements
by Aristotle
in thread newbie regex question: substituting repeating occurences for different replacements
by RuyLopez
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |