Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Modify values of tied, split lines in a file

by aitap (Deacon)
on Oct 22, 2012 at 19:10 UTC ( #1000404=note: print w/replies, xml ) Need Help??


in reply to Modify values of tied, split lines in a file

You can use the combination of -p and -i command line parameters to make Perl edit files in-place (like sed does). Actually, it does this by renaming the input file, opening the output file by the original name, and selecting that output file as the default for print() statements (a quote from perlrun).
Sorry if my advice was wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000404]
help
Chatterbox?
[stevieb]: found a issue in MetaCPAN::Client though today for my revdep tests. At least I think it's an issue
[stevieb]: I'm working on hiding the fact the software needs MetaCPAN::Client, as I often have a hell of a time installing it. I'm going to change it to let the user know if they do revdep that it needs to be installed, and remove that distribution ..
[stevieb]: ...from being a prereq

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-06-25 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.