Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( #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? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2022-12-09 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?