Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Get hangman words from text file

by Athanasius (Chancellor)
on Dec 05, 2012 at 03:29 UTC ( #1007186=note: print w/replies, xml ) Need Help??


in reply to Get hangman words from text file

Just a side note: When populating an array with words, you can save a lot of typing by using qw//:

my @words = qw( hi cat home country computer irc hat wow Berlin fly airplane cow maps make run sigh golf running hat television games hangman pearl cat dog snake black white cabin trees birds animals );

See Quote and Quote like Operators.

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007186]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-01-18 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.