PDA

View Full Version : Syntax confusion when to use do/exec/system??


B2004
08-12-2004, 12:58 PM
which of the following syntax should i use to run a perl script "B" from within perl script "A", if perl Script "B" takes agruments too.

is it do / exec / system or is it something totally different


code so far is like this:

if ($choice eq 'NAME'){
#execute Perl script "B" (Perl Script "B" path is /dir1/dir2/perl.pl Arg1 Arg2)
}


Thanks
B2004

Calilo
08-12-2004, 08:43 PM
I would use require

as in require /path/to/script/script.cgi;

that i would do.

Calilo