gdluce has asked for the wisdom of the Perl Monks concerning the following question:
I have a CGI perl program (call it a.pl) which calls a second program (b.pl) which resides in the same directory. Program b.pl has the following line in it:
use display;Everything works fine. I also have a third program (c.pl) which is located in a nested directory. c.pl also calls program b.pl as follows:
$result = system("../b.pl");However, this does not work returning with a 2304 return code. If I call a dummy program b.pl without the "use display;" line, then it works fine. Any suggestions on how to get this to work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System Call Error
by ikegami (Patriarch) on Jan 05, 2011 at 19:44 UTC | |
|
Re: System Call Error
by roboticus (Chancellor) on Jan 05, 2011 at 20:41 UTC | |
|
Re: System Call Error
by GrandFather (Saint) on Jan 05, 2011 at 23:01 UTC |