Click here to get back home

Hash

 HomeNewsGroups | Search

comp.lang.perl.modules - Discussion about PERL modules 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Hash weberw@adelphia.net 07-14-2006
`--> Re: Hash Sherm Pendley07-14-2006
Posted by weberw@adelphia.net on July 14, 2006, 5:27 pm
Please log in for more thread options


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
Please log in for more thread options


weberw@adelphia.net schreef:

show/hide quoted text

Certainly not by multi-posting.

--
Affijn, Ruud

"Gewoon is een tijger."



Posted by Sherm Pendley on July 14, 2006, 5:39 pm
Please log in for more thread options



show/hide quoted text

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

Similar ThreadsPosted
Modules for hash functions? (ie, common algorithms for computing hash keys, not manipulating perl hashes) August 26, 2006, 7:08 pm
Tie::FlatFile::Hash : visualize a flatfile database as a hash of arrays March 7, 2009, 7:35 pm
Is a hash the best method to do this? December 24, 2007, 1:23 pm
What can you use to tie a hash of hashes to either dbm or ascii? December 2, 2007, 12:26 pm
Options for passing Hash to a subroutine. March 30, 2005, 7:39 pm
Namespace for a searching a hash by key name module? April 16, 2009, 1:22 pm
Announce: Set::Array, Set::Hash, Set::String - new maintainer January 8, 2005, 10:04 am
Bug with hash time & multilines in Config::IniFiles v2.38 ? January 26, 2005, 9:53 am
Sorting Hash of Hashes with HEAP module March 17, 2005, 2:56 pm
accessing a hash made by iCal::Parser February 6, 2006, 11:16 am

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

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy