Many thanks to all who replied! Greg Stigers had exactly what I needed,
which since it wasn't posted to the list, I'll post here so that it will be
in the archives.
Many thanks Greg!
John
Greg wrote:
I believe you want the system call, so, for instance:
system("LISTFILE", "$data_file");
or, in your case,
system("RUN MYPROG.GROUP.ACCOUNT;INFO='", "$parm1", "'");
or something to that effect.
At 2002-08-28 01:18 PM, John Korb wrote:
>I know very little about Perl, and I'm trying to use Perl to parse the
>NAME=VALUE pairs from a POST form and then pass some environment variables
>and the VALUE strings (in a specific order) to an MPE program through the
>MPE program's INFO= parameter (not much data). To do so I need to know
>how to tell Perl to execute the MPE program with an INFO= string
>specified, and I can't seem to find a reference that describes how to run
>a program from Perl (but I can find many references on calling Perl from
>C). I have the Perl code for parsing the NAME=VALUE pairs and it works.
>
>Also, perhaps I'm going about this the wrong way. If there is an easier
>(non-Perl?) way of doing this, please let me know.
>
>Thanks!
>
>John
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|