Update your calling script to switch to the appropriate directory before calling the script, like:
chdir("./dir"); system("./foo.pl");
...roboticus
Error checking left as an exercise for the reader.
In reply to Re: system("./foo.pl") and a problem with relative paths in foo.pl
by roboticus
in thread system("./foo.pl") and a problem with relative paths in foo.pl
by dellnak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |