Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

•Re: multiline inplace edit

by merlyn (Sage)
on Aug 07, 2003 at 01:12 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-07-06 12:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found