Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Get hangman words from text file

by Athanasius (Canon)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2016-06-28 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (364 votes). Check out past polls.