Skip to content

Commit

Permalink
“”
Browse files Browse the repository at this point in the history
warnings on, fized warning
  • Loading branch information
Zach Morgan committed Jan 1, 2008
1 parent 8fb3e62 commit f198404
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crypto.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/perl -w
use strict;

use Gtk2 '-init';
Expand Down Expand Up @@ -57,6 +57,7 @@ sub count_letters{
$letterCount{$char}++ if $char =~ /[A-Z]/;
$char = encrypt($char);
$enc_letterCount{$char}++ if $char =~ /[A-Z]/;
$guesses{$char} = '';
}
}

Expand Down Expand Up @@ -181,7 +182,7 @@ sub make_guess{
#adjust fortuneview to new guess
#warn keys %guessLabels;
for my $lbl ( @{ $guessLabels {decrypt($char)} } ){
my $text = defined $guesses{$char} ? $guesses{$char} : '_';
my $text = $guesses{$char} ? $guesses{$char} : '_';
$lbl->set_text($text)
}
if (detectVictory()){
Expand Down

0 comments on commit f198404

Please sign in to comment.