Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Perl (http://www.programmingforums.org/forum21.html)
-   -   use syntax error (http://www.programmingforums.org/showthread.php?t=15058)

kruptof Jan 28th, 2008 1:13 PM

use syntax error
 
After finally getting the PHP::Session Module installed, I tried to write a test script to see if the installation worked:

:

#!/usr/local/bin/perl
print "content-type: text/html\n\n";
use PHP::Session;


However this dies with the error:
Quote:

syntax error at test.pl line 3, near "use PHP:"
Execution of test.pl aborted due to compilation errors
Can anybody please tell me what's wrong with that small piece of code?

TheAberrant Jan 29th, 2008 8:50 PM

Re: use syntax error
 
Kruptof,

If I were to guess, I'd think that the module didn't install correctly. You may want to try running 'perl -V' and check the @INC to make sure the directory you placed the PHP Modules is defined in there. I referenced http://world.std.com/~swmcd/steven/p...mechanics.html

Hope that helps. If not, hopefully it provides more diagnostic info for more experienced users.


All times are GMT -5. The time now is 3:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC