in reply to
Removing a text element from the middle of a string
why not use
$s=split(/,/, $line)[1];
[download]
or something similar? It seems like this is what you really want.
Comment on
Re: Removing a text element from the middle of a string
Download
Code
In Section
Seekers of Perl Wisdom