Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

RE: RE: Random Image in HTML

by merlyn (Sage)
on Apr 26, 2000 at 01:17 UTC ( [id://9111] : note . print w/replies, xml ) Need Help??


in reply to RE: Random Image in HTML
in thread Random Image in HTML

$image = $images[rand($#images+1)];
is unnecessarily obtuse. I much prefer:
$image = $images[rand @images];