Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Opening external files with arguements

by void_Anthony() (Acolyte)
on Apr 28, 2005 at 11:51 UTC ( [id://452358]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Opening external files with arguements
in thread Opening external files with arguements

It is a simple test program. Basicically, whatever number is entered as the arguement, the program merely spits it back out. I want to be able to specify what arguements are passed to the program so I can get the appropriate output of that program and use it in my perl code. Preferably, I would like the arguement passed to be a variable I will have earlier declared in the code.
  • Comment on Re^2: Opening external files with arguements

Replies are listed 'Best First'.
Re^3: Opening external files with arguements
by Transient (Hermit) on Apr 28, 2005 at 11:54 UTC
    Ahh, so you want to be able to call this program with arguments, then? Have you tried qx//?
Re^3: Opening external files with arguements
by blazar (Canon) on Apr 28, 2005 at 12:01 UTC
    Then again open as of the documentation or "more simply" qx//, aka 'backticks', which personally I don't like. Remote chances are that you may be interested in IPC::Open2 or IPC::Open3 as well.
Re^3: Opening external files with arguements
by holli (Abbot) on Apr 28, 2005 at 14:55 UTC
    It is a simple test program.
    Post your code. That will help a lot.


    holli, /regexed monk/
      Here is the program (in C++)
      int main(int argc, char *argv[]) { cout << argv[1]; system("PAUSE"); return EXIT_SUCCESS; }
      Just takes the arguement that was specified at run time and spits it back out. I want to be able to call this program from within my Perl code (preferably with arguements that are variables that I have specified in the Perl code as well.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://452358]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.