in reply to Find Replace

But, I cannot get it to recognize the ^M and spaces to perform a search on the above phrase. HELP?

You can change the meaning of EOL

perl -l015 -e " s/// " tells perl to use ^M as EOL

$ perl -le " printf q[CR \r is %03o], ord qq[\r] " CR \r is 015

Replies are listed 'Best First'.
Re^2: Find Replace
by SimTech (Initiate) on Dec 16, 2011 at 06:26 UTC
    Excuse my ignorance, but will that be a temporary change? Thanks for the tip...

      Excuse my ignorance, but will that be a temporary change? Thanks for the tip...

      No, your bank account will be emptied permanently!

       

      :D

      It is a pair of global variables, perlvar#$\ and perlvar#$/