Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: How to duplicate lines

by lidden (Curate)
on Mar 04, 2010 at 01:28 UTC ( #826588=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to duplicate lines
in thread How to duplicate lines

Change the code given above to:

perl -pe'$_ .= $_, s/252$/100/  if /^ip address/'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-12-10 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?