perl -e "$foo = qq|this\nwill\nlook\ndifferent|; $foo=~s/\n/<br>/g; p +rint $foo;" this<br>will<br>look<br>different c:\Temp>
Celebrate Intellectual Diversity
In reply to Re: OT: Perl and Javascript - escaping newlines
by InfiniteSilence
in thread OT: Perl and Javascript - escaping newlines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |