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

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

by shadowsong (Monk)
on Oct 07, 2016 at 13:03 UTC ( #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
Node Status?
node history
Node Type: note [id://1173483]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2019-05-23 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (144 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!