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

Re: [RedRum] Random Perl Global

Quote Reply
Re: [RedRum] Random Perl Global In reply to
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
Subject Author Views Date
Thread Random Perl Global Canoon 7274 Sep 27, 2001, 12:33 PM
Thread Re: [Canoon] Random Perl Global
Paul 7212 Sep 27, 2001, 1:02 PM
Thread Re: [RedRum] Random Perl Global
Canoon 7205 Sep 27, 2001, 1:10 PM
Post Re: [Canoon] Random Perl Global
Paul 7155 Sep 27, 2001, 1:14 PM
Thread Re: [Canoon] Random Perl Global
Paul 7157 Sep 27, 2001, 1:16 PM
Thread Re: [RedRum] Random Perl Global
Canoon 7198 Sep 27, 2001, 1:32 PM
Thread Re: [Canoon] Random Perl Global
Paul 7152 Sep 27, 2001, 1:35 PM
Post Re: [RedRum] Random Perl Global
Canoon 7153 Sep 27, 2001, 1:41 PM
Thread Re: [RedRum] Random Perl Global
Paul 7157 Sep 27, 2001, 1:52 PM
Thread Re: [RedRum] Random Perl Global
Canoon 7188 Sep 27, 2001, 1:57 PM
Thread Re: [Canoon] Random Perl Global
Alex 7141 Sep 27, 2001, 2:53 PM
Thread Re: [Alex] Random Perl Global
Canoon 7167 Sep 27, 2001, 3:06 PM
Thread Re: [Canoon] Random Perl Global
Alex 7133 Sep 27, 2001, 3:13 PM
Thread Re: [Alex] Random Perl Global
Canoon 7200 Sep 27, 2001, 3:21 PM
Thread Re: [Canoon] Random Perl Global
Alex 7151 Sep 27, 2001, 3:26 PM
Post Re: [Alex] Random Perl Global
Canoon 7123 Sep 27, 2001, 3:35 PM
Post Re: [Alex] Random Perl Global
Paul 7099 Sep 28, 2001, 3:49 AM
Post Re: [Alex] Random Perl Global
Sir Up 6996 May 24, 2002, 8:44 AM