in reply to Executing one script with another

do cgiscript.cgi

UPDATE - and to use arguments do cgiscript.cgi arg1 arg2

Makeing the script a module is probably a better way to do it though...

Good luck

Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson

Replies are listed 'Best First'.
Re^2: Executing one script with another
by Roy Johnson (Monsignor) on Jul 14, 2005 at 18:32 UTC
    do is the right tool, but you can't pass it args that way. Put them in the global @ARGV and the called script will process them as usual. Or make all the variables that are supposed to be shared globals that are declared with our.

    Caution: Contents may have been coded under pressure.
Re^2: Executing one script with another
by socketdave (Curate) on Jul 14, 2005 at 19:38 UTC
    This looks like a better idea than doing a system(), unless the second cgi isn't a perl script. Of course I'm probably reading too much into the problem...