Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl Regex

by rovf (Priest)
on Nov 15, 2012 at 09:10 UTC ( [id://1003970]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1003970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found