The stupid question is the question not asked | |
PerlMonks |
Re: Using system to run exe on Windows and pass it variablesby dasgar (Priest) |
on Sep 15, 2016 at 01:14 UTC ( [id://1171804]=note: print w/replies, xml ) | Need Help?? |
A technique that I typically use when I need to run a system command (with system(), backticks, or Capture::Tiny) is to build up the command and store it in a variable. Then I can print out that variable to make sure that I have the command exactly the way that I need/want it to be. That helps me to catch issues with incorrect interpolation due to my mistakes. The side effect of this technique is that the executing the command becomes very simple - i.e. system($cmd);
In Section
Seekers of Perl Wisdom
|
|