Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I'm using the following code to try and get the output from the cal program assigned to a variable.
open(INCAL,"/usr/bin/cal 1 2004 |");
$calendar = ;
[/code] There is no value assigned to $calander after running this. I've double checked that the cal program is in that directory and when I do '% /usr/bin/cal 1 2004' on the server it prints out the calander.
Another thing to note is that this code works fine on one server but not on the server i've moved the file to.
0 · ·