Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: One liner help

by VinsWorldcom (Prior)
on Oct 08, 2014 at 19:53 UTC ( [id://1103212]=note: print w/replies, xml ) Need Help??


in reply to Re: One liner help
in thread One liner help

Thanks, but neither of these work for me (Windows 7 x64 / Strawberry Perl v5.18.1 MSWin32-x64-multi-thread):

VinsWorldcom@C:\Users\VinsWorldcom\tmp> perl -lpe "join q{.}, reverse +split /\./" zones.txt 1.100.10 2.100.10 3.100.10

They both just seem to print the file as-is.

Replies are listed 'Best First'.
Re^3: One liner help
by kennethk (Abbot) on Oct 08, 2014 at 23:26 UTC
    Stupid mistake; sorry:
    perl -lpe "$_=join q{.}, reverse split /\./" zones.txt

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      BINGO!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found