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

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

by AnomalousMonk (Archbishop)
on Mar 16, 2017 at 05:02 UTC ( [id://1184821]=note: print w/replies, xml ) Need Help??


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

Or with a substitution (and without a module):

c:\@Work\Perl\monks>perl -wMstrict -le "my @files = qw(blah.config boo.config big.config); print qq{@files}; ;; s{ \A [^.]* }{}xms for @files; print qq{@files}; " blah.config boo.config big.config .config .config .config


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^2: How to remove the words before the dot using perl?
by finddata (Sexton) on Mar 16, 2017 at 05:05 UTC
    Is it possible to do the same process without storing it in array.

      Please see this.


      Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

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

    No recent polls found