> Well you could actually put them in a hash with a number as the key and
> the tip as th evalue then undefine the value of a key once it's used.

Won't that be an unnecesary waste of memory and clock cycles? How efficient
are the Perl hashing routines anyway?

> my $random_key = ( keys %tips )[ rand keys %tips ];

Can anyone parse this line for me?

One more thing - I don't seem to have perldoc installed, I simply look up
the functions in the info node `perlfunc'. Am I missing something?

--
Abhijit Shylanath
Homepage: http://mudeth.tripod.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to