View Single Post
Old 09-19-2004, 07:01 PM  
TDJ
Confirmed User
 
Join Date: Nov 2003
Location: Ontario, CA
Posts: 146
You can do this either of two ways. First way is to make the search program a package. Or, since you're talking about the search program just being a program unto itself, assuming it outputs via PRINT commands to STDOUT, you do:

my $searchresults = `/path/to/searchprogram.pl`;

print $header;
print $searchresults;
print $footer;

Anyways, that's the idea. I'd explain the package thing, but its a bit more complicated.

TDJ
TDJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote