|
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
|