#This is it, the generator! Thought it would be a little more impressive huh?
#Increase the right operator in the for loop to increase the number of digits
#for the key. Decrease to decrease....
$int .= (0..9)[rand 10] for (1..6);
my @dat = split('', $int);
#This encrypts the generated string so we can pass it as a
#hidden parameter and keep the true value secret.
$int = crypt($int, "gen");
#This creates the html image tags.
my $it = 0;
for (@dat) {
my $cnt = make($_, $it);
$images .= "{'IMAGES_URL'}/$cnt.gif\">";
$it++;
}
#Return html page to browser
return qq~
| $images |