PERL Modules

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
actionscripted
-


Joined: 16 Feb 2005
Posts: 2

PostPosted: Wed Feb 16, 2005 5:03 pm    Post subject: PERL Modules Reply with quote

How do I use 'em?

Doesn't work like a normal setup, so what do I need to do to get this working?

this returns a 500:
Code:
#!/usr/bin/perl
use Digest::MD5 'md5_hex';
$userVar = "sometext"
$userHash = md5_hex($userVar);
sub sendToUser{
print "Content-type: text/html\n\n";
print <<EOF
<html>
   <head>
      <title>Your IP</title>
   </head>
   <body>
EOF
;
print "<h5>Checksum of \"$userVar\": $userHash</h5></body></html>";
}
&sendToUser;
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Feb 16, 2005 5:07 pm    Post subject: Reply with quote

Please read http://www.aprelium.com/abyssws/perl.html
Back to top View user's profile Send private message Visit poster's website
actionscripted
-


Joined: 16 Feb 2005
Posts: 2

PostPosted: Wed Feb 16, 2005 10:28 pm    Post subject: Reply with quote

I'm well aware of how to setup PERL. But I can't call PERL modules like I normally would in a CGI script, and I'm wondering if there's a special syntax I need to be aware of, special configuration stuff, etc.

Thanks, TRUST. Glad you actually read my post. A link directly to Google would've been more helpful than your reply.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Feb 16, 2005 11:02 pm    Post subject: Reply with quote

Sorry I must have been tired or not aware of the situation when I replied to
your post , yeah I recommend searching Google for your answer next time.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Feb 17, 2005 1:46 am    Post subject: Re: PERL Modules Reply with quote

actionscripte,

Open log/cgi.log. Perl should have logged there error messages to help you understand what's wrong with the script.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group