You can use hex escapes inside a double-quote quoting construct (qq{...}). Works on *nix and Windows.
$ perl -le 'print qq{hello \x27\x22 \x22\x27};' hello '" "' $
C:\>perl -le "print qq{hello \x27\x22 \x22\x27};" hello '" "' C:\>
I hope this is useful.
Cheers,
JohnGG
In reply to Re: Perl one-liner Quotes help
by johngg
in thread Perl one-liner Quotes help
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |