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

Re: Re: Re: converting files in place

by repson (Chaplain)
on Apr 25, 2001 at 07:31 UTC ( #75367=note: print w/replies, xml ) Need Help??


in reply to Re: Re: converting files in place
in thread In-place editing of files (was: general perl question)

What I meant was that my code can be dropped in the middle of a program, while to use the switches in the middle of a program you would have to spawn a new perl with those switches.
#!/usr/bin/perl -w ..... system(q#perl -i.bak -p -e '$_ = uc'#); .....

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75367]
help
Chatterbox?
[Corion]: Ow, "but you're not supposed to do that" ;)
[chacham]: with google, you kinda just gotta do what it recomends.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-03-29 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (344 votes). Check out past polls.