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

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).