By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,506 Members | 1,876 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,506 IT Pros & Developers. It's quick & easy.

Premature end of script headers: test.pl

100+
P: 158
Im getting these errors when i use a module, could anyone tell me what they think wrong, its the second one that i think it the problem but i don't know what it means so i cant fix it, Thank you.

[Thu May 24 18:15:58 2007] [error] [client 127.0.0.1] Premature end of script headers: test.pl, referer: http://localhost/lightmon/

[Thu May 24 18:15:58 2007] [error] [client 127.0.0.1] Can't locate loadable object for module ArtNet in @INC (@INC contains: C:/usr/site/lib C:/usr/lib .) at C:/Program Files/Apache Group/Apache2/htdocs/Lightmon/test.pl line 5\r, referer: http://localhost/lightmon/

[Thu May 24 18:15:58 2007] [error] [client 127.0.0.1] Compilation failed in require at C:/Program Files/Apache Group/Apache2/htdocs/Lightmon/test.pl line 5.\r, referer: http://localhost/lightmon/

[Thu May 24 18:15:58 2007] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at C:/Program Files/Apache Group/Apache2/htdocs/Lightmon/test.pl line 5.\r, referer: http://localhost/lightmon/
May 24 '07 #1
Share this Question
Share on Google+
5 Replies


KevinADC
Expert 2.5K+
P: 4,059
How are you calling the module in your script? Is the module installed or otherwise available to your main script via "require" or "lib"? Can we some of your perl code?
May 24 '07 #2

100+
P: 158
all im doing in the code to test and see if it works is:

use ArtNet::ArtNet

the the module ArtNet is in the right spot in lib\ArtNet i just keep getting that error but i dont know what to do to fix it.
May 24 '07 #3

KevinADC
Expert 2.5K+
P: 4,059
"ArtNet::ArtNet" means the ArtNet.pm module is in a folder named ArtNet. Is that the case?
May 24 '07 #4

100+
P: 158
that is the case. that is the case that is the case
May 24 '07 #5

KevinADC
Expert 2.5K+
P: 4,059

Post your reply

Sign in to post your reply or Sign up for a free account.