in reply to Problem calling one script from another
(Unless of course I took a tip from my understanding of Perl and arranged to do or require the script. Actually I would probably put it's functions into a module then use that.)my $cmd = "perl /path/to/indexer.pl"; system($cmd) or die "Cannot run '$cmd': $!";
UPDATE
Oops.
The code snippet as written is useless. See comments below and the fact that the return for success is 0.
But the reference to perlstyle is good, as well the advice on not doing system commands is likewise.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 1: Problem calling one script from another
by chipmunk (Parson) on Dec 11, 2000 at 10:23 UTC | |
by tilly (Archbishop) on Dec 11, 2000 at 10:31 UTC |