Page 1 of 1

What's wrong with this Perl script?

Posted: Mon Jun 26, 2006 8:19 pm
by tristanlee85

Code: Select all

#!/usr/bin/perl

$code1 = crypt("plastikracing.net","0Q");
$code2 = crypt("www.plastikracing.net","0Q");

print "$code1";
print "$code2";
Basically, I want it to crypt "plastikracing.net" and "www.plastikracing.net" using the salt "0Q". I'd like the value of $code1 and $code2 printed on my screen. When I run this I'm getting an Internal Server Error (500). What's wrong with it?

Posted: Mon Jun 26, 2006 8:35 pm
by alex.barylski

Posted: Tue Jun 27, 2006 6:30 am
by Chris Corbyn
Is it chmodded to be executable? Is the shebang line correct?