Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to remove the words before the dot using perl?

by mr_ron (Chaplain)
on Mar 16, 2017 at 13:56 UTC ( [id://1184878]=note: print w/replies, xml ) Need Help??


in reply to Re: How to remove the words before the dot using perl?
in thread How to remove the words before the dot using perl?

Parts of the OP suggest that File::Basename may be preferable to custom coding.

> my $suffix = $file; # suggests a file name > ... > rev1.config # looks like a file name
The desired result may need some care in reading the module documentation
perldoc File::Basename
with extra attention near the helpful line:
fileparse("/foo/bar/baz.txt", qr/\.[^.]*/);
Ron

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found