Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: s/\r\n/\n/ passed as command line parameters not working

by choroba (Abbot)
on Jan 17, 2013 at 18:03 UTC ( #1013845=note: print w/ replies, xml ) Need Help??


in reply to s/\r\n/\n/ passed as command line parameters not working

The variable $replace contains two characters, \ and n. You can create a Perl expression from its value and evaluate it:

s/$search/'"'.$replace.'"'/eeg;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: s/\r\n/\n/ passed as command line parameters not working
Select or Download Code
Re^2: s/\r\n/\n/ passed as command line parameters not working
by ggrise (Initiate) on Jan 17, 2013 at 18:15 UTC
    Thanks, that fixed the code. I appreciate your time and I learned something.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-07-25 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls