Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Looking for pointers or optimizations.

by thmsdrew (Scribe)
on Aug 21, 2012 at 14:36 UTC ( #988761=note: print w/ replies, xml ) Need Help??


in reply to Re: Looking for pointers or optimizations.
in thread Looking for pointers or optimizations.

In response to you first one, I have a similar optimization but a bit less confusing to me:

my $displayed; foreach my $s (split(//, $word)) { $displayed .= exists($correct_guesses{$s}) ? "$s " : "* "; }


Comment on Re^2: Looking for pointers or optimizations.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (22)
As of 2015-08-03 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (48 votes), past polls