Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Tuesday December 10, 2002
10:58 AM

Straight, no chaser

[ #9360 ]
I have to confess : today I fixed a bug in an AIX executable by patching it with perl -i -pe 'BEGIN{undef$/}s/.../.../'. (At least this way I didn't have to recompile and transfer a 350-k file over a slow dialup line.)
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • perl -i -pe 'BEGIN{undef$/}s/.../.../'
    I find it easier to type:
    perl -pi -0777 -e 's/foo/bar/'
    --
    • Randal L. Schwartz
    • Stonehenge
  • (At least this way I didn't have to recompile and transfer a 350-k file over a slow dialup line.)

    Why not rsync the old remote file to be identical to your corrected local copy?

    • You're assuming that I was connected to the remote host via a regular TCP/IP/telnet connection. I wasn't : this was a serial link, and I was transferring files via Ckermit. (And I'm unfamiliar with this kind of communication).