Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by madtoperl (Hermit)
on Mar 16, 2017 at 10:55 UTC ( [id://1184862]=note: print w/replies, xml ) Need Help??


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

Hi finddata
Using regular expression,
#!/usr/local/bin/perl use strict; use warnings; #my $file = 'rev1.config'; my $file = 'checklist_tmp.config'; $file =~ s/\w+\././; print "$file\n"; Output: perl test.pl .config

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found