Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

•Re: multiline inplace edit

by merlyn (Sage)
on Aug 07, 2003 at 01:12 UTC ( [id://281669]=note: print w/replies, xml ) Need Help??


in reply to multiline inplace edit

How is this any different from:
perl -pi -e 'BEGIN { $/ = undef } s/foo/bar/g' file1.txt file2.txt ...
That's easier than remembering to install a program. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: multiline inplace edit
by Aristotle (Chancellor) on Aug 07, 2003 at 09:09 UTC
    How about -0777 instead of that clumsy BEGIN? ;) See perldoc perlrun. *tongue in cheek*

    Makeshifts last the longest.

Re: multiline inplace edit
by meonkeys (Chaplain) on Aug 07, 2003 at 01:16 UTC
    Damn. I knew it.

    Well, hope someone enjoys reading it, anyway! :)

    ---
    "A Jedi uses the Force for knowledge and defense, never for attack."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found