in reply to Re: search and replace weird output
in thread search and replace weird output

Help yourself, by introducing copious debug print statements after each substitution. If you are a candidate for going insane over those kinds of problems, solving the problem for you would only delay your fate. Sometimes the only way to get out of peril is going through it... ;-)

Heh...point well taken sir! Actually the "answer" in the back of the book suggests using the \n as the placeholder. So, you're issue is with Randal, not me! ;)

Replies are listed 'Best First'.
Re^3: search and replace weird output
by shmem (Chancellor) on Feb 25, 2008 at 23:23 UTC
    Ah, no. I don't have an issue, with neither you nor Randal. But Randal cared to chomp or chop, didn't he?

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}