This is great! However I have one question. Is there an alternative to text_to_js_lit packaged as a module?
I'm surprised that (q{\'\'} eq q{\'\'}); wouldn't this be eq q{''}?
In any case the reason I ask is that for testing I'd like to pass perl strings to JS alert(). The problem was at first:
alert("Error: ERROR: null value in column "bidder_username" violates not-null constraint"); Where I was so lost as to why I couldn't get my string to popup.
Then this:
alert("Error: ERROR: null value in column "bidder_username" violates not-null constraint");
Where the result is not readable, this string is displayed as is.
In reply to Re^2: Perl, JavaScript and quoting/escaping
by Anonymous Monk
in thread Perl, JavaScript and quoting/escaping
by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |