Bastian Angerstein wrote:
Hmmm...

use strict; use warnings;
my $a="i.like.donuts.but.only.with.tea";
$a=~s/\.\w+$//; # <---- maybe w+ not d+???

Better still $a =~s/\.[^.]+$//;

Thanks
Ram

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to