PDA

View Full Version : Calling a perl program from another perl program.


YFS200
03-05-2000, 03:50 AM
I am trying to call an another perl program from a perl program. I need to pass it four variable. I got the system part figured out.


system 'perl', q{e:\web\www\account\cgi-bin\test.pl}, $testarg1,$testarg2,$testarg3,$testarg4;


But how exactly do I get the variables from inside test.pl. I recall reading something about it, but that's as far as my memory goes.

Any hints?

YFS200

Terra
03-05-2000, 01:01 PM
@ARGV

--
Terra
sysAdmin
FutureQuest

YFS200
03-06-2000, 03:15 AM
That's it. I knew it was something simple.

YFS200
Across the keyboard and through the modem,
lookout TAZ, here comes somethin'. :)

[nbsp][nbsp]