Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by madtoperl (Hermit)
on Mar 16, 2017 at 10:55 UTC ( #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 chanting in the Monastery: (4)
As of 2023-12-10 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (39 votes). Check out past polls.

    Notices?