Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: poll ideas quest 2007

by goibhniu (Hermit)
on Feb 28, 2008 at 22:52 UTC ( #671038=note: print w/ replies, xml ) Need Help??


in reply to Re: poll ideas quest 2007 (holy war)
in thread poll ideas quest 2007

  • Perl vs. my @otherlangs = ('Ruby','Python','JAVA');$otherlangs[rand($#otherlangs)];
  • Perlmonks vs. $trollnames[rand($#trollnames)];

. . . and I'll leave populating @trollnames as an exercise for the reader.


#my sig used to say 'I humbly seek wisdom. '. Now it says:
use strict;
use warnings;
I humbly seek wisdom.


Comment on Re^2: poll ideas quest 2007
Select or Download Code
Re^3: poll ideas quest 2007
by ambrus (Abbot) on Feb 29, 2008 at 07:56 UTC

    $trollnames[rand($#trollnames)];

    That never chooses the last troll. Use $trollnames[rand(@trollnames)] instead.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://671038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (20)
As of 2015-07-06 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls