in reply to
Cutting last word from a output line
why not do this $str =~ /(\w+)$/;
Comment on
Re: Cutting last word from a output line
In Section
Seekers of Perl Wisdom