You should probably take a look at 'do'.  If you 'do' another perl program
it will get the callers @ARGV, so if you set this up appropriately you
should be good.  I ran a quick benchmark on the two, here's what I got.

Benchmark: timing 1000 iterations of do, system...
    do:  3 wallclock secs ( 2.98 usr +  0.00 sys =  2.98 CPU) @ 335.46/s
(n=1000)
    system: 31 wallclock secs (30.90 usr +  0.00 sys = 30.90 CPU) @ 32.37/s
(n=1000)

So about 10 times faster to use do.

More on this, and more, can be found at your local prompt with 'perldoc -f
do'

Hope this helps,
Peter C.

-you wrote-
Within a script called "format.pl", I want to call another script called
"../cgi/somedir/banners.pl", passing name-value-pairs like
"region=someregion" and "mode=SSI".

Initially I thought of require-ing "banners.pl" and then just call whatever
subroutiness are necessary, but the way banners.pl is structured that
doesn't work. Can I do this with "system" and pass arguments as
name-value-pairs?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to