Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: sed isn't working within a perl script

by Anonymous Monk
on Oct 19, 2012 at 09:17 UTC ( [id://999888]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -i -l -p -e ' s /(.*)/Number => ${1}/s; '  test.txt
    
  2. or download this
    use File::Slurp qw/ edit_file /;
    edit_file { s /(.*)/Number => ${1}/s; } 'test.txt';
    

Log In?
Username:
Password:

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

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

    No recent polls found