in reply to (Challenge)(for new users) Replacing a text

Well, I'm a newbie, so a rummage through perlrun (thanks for the hint) got me there. I'll hide this behind a readmore, just in case anyone else wants a go...

Update: not including the filename at the end, 37 chars

perl -pi -e 's/Will( Emigh)/JAPH\1/g' FileName

Replies are listed 'Best First'.
Re^2: (Challenge)(for new users) Replacing a text
by antirice (Priest) on Sep 24, 2004 at 18:00 UTC

    And with -w...

    # perl -wpi -e 's/Will( Emigh)/JAPH\1/g' FileName \1 better written as $1 at -e line 1. #

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1