Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by choroba (Canon)
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
Replies are listed 'Best First'.
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 exploiting the Monastery: (19)
As of 2015-07-28 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls