| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| actionscripted -
 
 
 Joined: 16 Feb 2005
 Posts: 2
 
 
 | 
			
				|  Posted: Wed Feb 16, 2005 5:03 pm    Post subject: PERL Modules |   |  
				| 
 |  
				| 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 |     | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| actionscripted -
 
 
 Joined: 16 Feb 2005
 Posts: 2
 
 
 | 
			
				|  Posted: Wed Feb 16, 2005 10:28 pm    Post subject: |   |  
				| 
 |  
				| 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 |     | 
	
		|  | 
	
		| TRUSTAbyss -
 
 
 Joined: 29 Oct 2003
 Posts: 3752
 Location: USA, GA
 
 | 
			
				|  Posted: Wed Feb 16, 2005 11:02 pm    Post subject: |   |  
				| 
 |  
				| 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 |       | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Thu Feb 17, 2005 1:46 am    Post subject: Re: PERL Modules |   |  
				| 
 |  
				| 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 |       | 
	
		|  | 
	
		|  |