in reply to
Removing underscores.
you could do $txt= join ('', ($txt =~ /(.*)_(\..*)/)) || $txt;
Comment on
Re: Removing underscores.
In Section
Seekers of Perl Wisdom