Calling command prompt from perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • venkatramank582
    New Member
    • Jul 2013
    • 1

    Calling command prompt from perl

    i am in need to run an .exe file from perl script and when it runs it asks for a expression as an input,i need to pass inputs to the .exe file. please give me the solution to run an exe file from perl script amd how to pass inputs to it.?.Any suggestion would be most welcome.
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    Use system() function http://perldoc.perl.org/functions/system.html

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      Or, you could simply enclose the command to run in back tics as well. The difference is explained in the link below, but basically, if you need the output, use backtics.



      Regards,

      Jeff

      Comment

      Working...