Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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;

Re: Hash

weberw@adelphia.net schreef:

Quoted text here. Click to load it

Certainly not by multi-posting.

Affijn, Ruud

"Gewoon is een tijger."

Re: Hash

Quoted text here. Click to load it

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


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

Site Timeline