![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Template-output quoting (Warning: Contains JavaScript)by tachyon (Chancellor) |
on Dec 10, 2002 at 14:50 UTC ( #218793=note: print w/replies, xml ) | Need Help?? |
But if the template code expands into "Hello Fred's World" then you'll get a syntax error as the apostrophe in Fred's is interpreted as the end of the string. Ah, uhm, I don't think so. 'field' is a string literal not an interpolated variable.....Anyway here is some code that proves the point and shows you how to do s/this/that/g in javascript
Now I just have to log off, log on as my alter ego and downvote myself for contaminating the hallowed ground of PM.....It was only 4 lines. Hopefully the gods will be kind. cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|