Quotemeta should be used for perl regular expressions and nothing else.
eh?
For bash-like shells, it misquotes newline characters.
Indeed.
$ perl -e'$msg = "abc\ndef"; print `echo \Q$msg\E`;' abcdef
system and back-ticks use the bourne shell. What would be a proper escape function for bourne shell args?
In reply to Re^3: How to capture error messages...
by ikegami
in thread How to capture error messages...
by fabster01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |