Problems? Is your data what you think it is? | |
PerlMonks |
Re: Escaping characters in one-linersby saintmike (Vicar) |
on Mar 12, 2005 at 08:07 UTC ( [id://438888]=note: print w/replies, xml ) | Need Help?? |
Getting the quotes right can be quite daunting, that's why there's help via Sysadm::Install from CPAN: Let's whip up a script one_liner really quickly:
Now, if you call one_liner without arguments, it'll wait for code to be typed into STDIN, terminated by CTRL-D, and spit out the one-liner right after:
Produces properly escaped one-liners out of any messy perl code you paste in.
In Section
Seekers of Perl Wisdom
|
|