I'm pretty sure you can make this code shorter if you really want to, but I am curious why you chose to substitute all lines. That, to me, looks like a lot of useless hassle ;)
Anyways, for the OP, my €0,02:
while(<DATA>) { print "<$1>$1$2<$1>" if $_ =~ m|(\w{2})(.*)|; } __DATA__ il yadayadayada df yadayadayada
In reply to Re: tagging question
by b10m
in thread tagging question
by bagerson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |