Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: backslashes in shell commandsby Khen1950fx (Canon) |
on Mar 09, 2013 at 15:02 UTC ( [id://1022576]=note: print w/replies, xml ) | Need Help?? |
A good substitute for backticks is the capturex function from
IPC::System::Simple. It's like backticks in
list context, and it will not invoke the shell. If you want the shell, then use the capture function. For example:
I really hope this helps you.
In Section
Seekers of Perl Wisdom
|
|