Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[1nickt]: bravo
[jedikaiti]: wheee
[Discipulus]: bravo the $employer who pay 1.340 neuros + vat ;=)
[Discipulus]: but i'd need 2 courses o acces the first lvl examen: they didnt pay it this year
[1nickt]: damn. pricey. I would have said there's not much to learn but apt-get, and do everything else in Perl ... but maybe I am forgetting some of the learning curve ;-)
[Discipulus]: the teacher is a python programmer.. ;=) he said it was fshion when he had to choose..

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-12-11 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (308 votes). Check out past polls.

    Notices?