Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Problem with System() command in perl?

by shadowsong (Pilgrim)
on Oct 07, 2016 at 13:03 UTC ( [id://1173483]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Problem with System() command in perl?
in thread Problem with System() command in perl?

ankit.tayal560 - type start /? in a windows command prompt for more information on what marto is trying to impart.

basically there are 3 ways to start new processes in perl:

  • open - open (IN, "program.exe|") or die "couldn't start program.exe"
  • system - system('program.exe')
  • backticks or qx - qx(program.exe) or `program.exe`

careful what you do when running programs that require external input from users, but in a nutshell what's happinging in system('start "" "' . $calc . '"'); is the same as system('program.exe arg1');

Cheers,
Shadowsong

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (None)
    As of 2024-04-25 01:45 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found