Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Lost...

by Chmrr (Vicar)
on Nov 25, 2002 at 07:22 UTC ( #215577=note: print w/ replies, xml ) Need Help??


in reply to Character positioning

Here's another way of looking at your problem that may suggest to you a possible solution; you've got a bunch of characters in a string -- the word. For each letter, either it's a letter that's been guessed, or it isn't. If it has been guessed, just show the letter. Otherwise, show an underscore. You may find that treating the word as an array this way is useful.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'


Comment on Re: Lost...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-10-25 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls