Don't ask to ask, just ask | |
PerlMonks |
Re: Error while taking 'Scalar of scalar'by jettero (Monsignor) |
on Jul 04, 2007 at 12:16 UTC ( [id://624873]=note: print w/replies, xml ) | Need Help?? |
Quasi-relevant: my $randcolor = $colors[ int rand $#colors ]; misses the last one every time. :(
You might want my $randcolor = $colors[ rand @colors ]; instead. -Paul
In Section
Seekers of Perl Wisdom
|
|