Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Using system to run exe on Windows and pass it variables

by dasgar (Priest)
on Sep 15, 2016 at 01:14 UTC ( [id://1171804]=note: print w/replies, xml ) Need Help??


in reply to Using system to run exe on Windows and pass it variables

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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1171804]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-03-28 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found