laziness, impatience, and hubris | |
PerlMonks |
output of one program doesn't show in another on serverby gideondsouza (Pilgrim) |
on Dec 18, 2012 at 03:03 UTC ( [id://1009269]=perlquestion: print w/replies, xml ) | Need Help?? |
gideondsouza has asked for the wisdom of the Perl Monks concerning the following question: Forgive my naivety here I'm just trying to learn stuff and none of this is going into any production. I have test.cgi :
In runthis.pl I have:
Now, locally on my machine, if I run test.cgi as test.pl from the command line this gives @ret length as 1 and shows $ret[0] as hellow world. BUT on my apache server the array shows with a length of 1 but the output hello world doesn't show.
Update:In the end this is what worked with some trial/error suggestions from the good folk here my @ret = qx(/usr/bin/perl ./runthis.pl`);
Back to
Seekers of Perl Wisdom
|
|