On Fri, 22 Jun 2001, Steven Scott wrote:

>     Is there an easy way to call one Perl program from another?
> Trying to run under Apache Web server on Windows and we want to do
> some processing in one program, then return control to our main menu
> Perl program.
>
>     Please respond to my email as well as the newsgroup.  Thanks in
> advance...

using system() is the easiest way, but not necessarily the best way (plus
there are security implications).  I would actually do some redesign and
rewrite one script as a module that is used by the second.  They are both
Perl so certainly they can share code!  See 'perldoc perlmod' for more
details on creating and using modules.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
You love your home and want it to be beautiful.

Reply via email to