in reply to The Spudgun

$how[rand($rand_max) % (scalar @how)], $where[rand($rand_max) % (scalar @where)], $what[rand($rand_max) % (scalar @what)]);

Much simpler, and more traditional, to write these as:

$how[rand @how], $where[rand @where], $what[rand @what];

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: The Spudgun
by MrCromeDome (Deacon) on Jul 16, 2002 at 18:31 UTC
    Thank you =) I was blinded by my C way of doing things.

    MrCromeDome