http://www.perlmonks.org?node_id=1003970


in reply to Perl Regex

use File::Basename qw(basename); .... my $last_part_in_string=basename($string);
Depending on how you see it, you might call this an abuse, or an innovative usage of basename...

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: Find number at string end
by parv (Parson) on Nov 15, 2012 at 09:32 UTC

    :-) I had almost posted a similar version. There is still room for File::Spec::Unix.