in reply to Re^5: Perl, JavaScript and quoting/escaping
in thread Perl, JavaScript and quoting/escaping

For example:
open(...) or print 'alert("foo '.$!.' baz");';
If/when $! contains one of '", ect. As the escape-e could be anything and in my case content provided from a insecure variable I need something that can withstand any amount of trickery done by malicious ppl.