Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: quoting for system() and friendsby snoopy (Curate) |
on Mar 06, 2007 at 06:18 UTC ( [id://603354]=note: print w/replies, xml ) | Need Help?? |
There's a function quotemeta:
To quote from the doco: Returns the value of EXPR with all non-alphanumeric characters backslashed. (That is, all characters not matching /A-Za-z_0-9/ will be preceded by a backslash in the returned string, regardless of any locale settings.) This is the internal function implementing the \Q escape in double-quoted strings.Update:
In Section
Seekers of Perl Wisdom
|
|