Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Looking for pointers or optimizations.

by hbm (Hermit)
on Aug 21, 2012 at 14:23 UTC ( #988755=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $displayed;
        foreach my $s (split(//, $word)) {
    ...
            }
            $displayed .= " ";
        }
    
  2. or download this
            my $displayed = join" ",
                            map { exists $correct_guesses{$_} ? $_ : '*' }
                            split//, $word;
    
  3. or download this
        print "Fails remaining: $turns\n";
        print "Wrong guesses: ", join(" ", keys %wrong_guesses), "\n";
        print "Your guess: ";
    
  4. or download this
            print "Fails remaining: $turns\n",
                  "Wrong guesses: ", 
                  join(" ", keys %wrong_guesses), "\n",
                  "Your guess: ";
    
  5. or download this
       if (!$guess =~ /[a-z]/ ...
    
  6. or download this
       if ($guess !~ /[a-z]/ ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988755]
help
Chatterbox?
[Lady_Aleena]: I'll just have to search for the files using the subs and open them up.
[Discipulus]: nice Perl dreams, folks.. shower->Dumas->bed
[erix]: pere ou fils?
[Lady_Aleena]: Discipulus, good night.
[Discipulus]: pere, le vicomte de bragelonne.. wonderfull
[erix]: I'll keep that in mind (haven't read), buona notte :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-05-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?