in reply to Re: Re: Invoking a perl program via an executable c++ program...
in thread Invoking a perl program via an executable c++ program...

If you're using ActiveState's Perl distro, under the Perl\bin dir there's a runperl.bat. If you copy that file to the same directory that your perl script is in, and rename the .bat file to have the same name as the perl script (ex: if your perl script is 'program.pl', rename the .bat file to 'program.bat') - then someone at a command prompt should be able to just type 'program' or whatever the name of the script is to execute it.

Of course, windows should have associated the .pl extension to Perl as John mentioned, so you should just be able to double-click on the file itself. in windows. :)

~Brian
  • Comment on Re: Re: Re: Invoking a perl program via an executable c++ program...

Replies are listed 'Best First'.
Re: Re: Re: Re: Invoking a perl program via an executable c++ program...
by kiat (Vicar) on Nov 16, 2001 at 06:54 UTC
    I need the user to key in some inputs (arg1 and arg2) after the program is invoked (i.e. he or she need only to specify the arguments but not type out the entire command as in c:\perl>perl program.pl arg1 arg2). Ideally, I would like to have the user simply select the options (the arguments) through a GUI interface without having to type at the command line. Can that be done with perl alone or do I need to use c++ to do the interface? Thanks in advance.
      use perl's TK module. A brief example here