in reply to Re^2: Array problem
in thread Array problem

Maybe you should post some code.
How do I post a question effectively?
How do I select a random element from an array?
#!/usr/bin/perl -- use strict; use warnings; my @start = ( 'dog', 'cat', 'bird', 'mouse', 'rat', 'snake', 'horse', 'cow', 'pig', 'lizard', 'lamb', 'zebra', 'lion', 'elephant', 'monkey' ); print "Three random items from \@start: ", join ' ', $start[ rand @start ], $start[ rand @start ], $start[ rand @start ], "\n"; __END__ Three random items from @start: monkey mouse rat
perlfunc:join, perlfunc:rand