|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I am a newbie to programing in PERL. I have used tons of PERL progs. But I am new to actually writing...
My question is can you call another perl/cgi script from within another seperate script. The script I am creating when arange and prepare parameters for the script I want to call. Any help is appreciated. |
|
#2
|
|||
|
|||
|
Yes.
If the other perl script is on the same server, simply do something like this: #!/usr/local/bin/perl $output = system("perl /full/path/to/other/script.pl"); print "Content-type: text/htmlnn"; print "$output"; If it's on another server somewhere, start here -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000387.html |
|
#3
|
|||
|
|||
|
I've not tried it, but I thought the system() method didn't return anything to a variable. I know that this would:
$variable=`perl /path/to/script.pl`; |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Execute A Script From Within A Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|