What's wrong with this Perl script?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
tristanlee85
Forum Contributor
Posts: 172
Joined: Fri Dec 19, 2003 7:28 am

What's wrong with this Perl script?

Post 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?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Is it chmodded to be executable? Is the shebang line correct?
Post Reply