Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [RedRum] Random Perl Global: Edit Log

Here is the list of edits for this post
Re: [RedRum] Random Perl Global
Thanks,

I have:

sub {
# Displays random numbers/letters.
my @dig = ('0..9', 'a..z', 'A..Z');
srand(time ^ $$);
for (my $i = 0; $i++ < 8;) {
$RAND .= $dig[rand(@dig)];
}
return $RAND;
}


And the error:

Unable to compile 'random'. Reason: Global symbol "$RAND" requires explicit package name at (eval 7) line 6. Global symbol "$RAND" requires explicit package name at (eval 7) line 8.

Last edited by:

Canoon: Sep 27, 2001, 1:35 PM

Edit Log: