Click here to get back home

Hash

 HomeNewsGroups | Search

get this group's latest topics as an RSS feed  comp.lang.perl.modules - Discussion about PERL modules

please rate
this thread
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by weberw@adelphia.net on July 14, 2006, 5:27 pm


How do I make the current letters appear in this version of hangman?


$current = $cat

When the user enters c.  I need it show c_ _.

sub processguess{


#hash of letters guessed
 $current .= param('guess');
 @guessed_letters = split('', $current);
 $current = join('', @guessed_letters);
 return  $current;


my @word = split / /,  $current;
$current = join '',map ? $_ : '_' }
$current =~ /(.)/g;
return $current;
}


Posted by Dr.Ruud on July 14, 2006, 5:39 pm


weberw@adelphia.net schreef:



Certainly not by multi-posting.

--
Affijn, Ruud

"Gewoon is een tijger."



Posted by Sherm Pendley on July 14, 2006, 5:39 pm





You also posted this separately in c.l.p.misc. Please don't do that. This
isn't a modules question anyway.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


Subject Author Date
Hash weberw@adelphia.net 07-14-2006
`--> Re: Hash Sherm Pendley07-14-2006
If you were  Registered and logged in, you could reply and use other advanced thread options

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

1-Script XML SitemapXML Sitemap
Privacy Policy