Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix warnings
  • Loading branch information
dwarring committed Jul 27, 2014
1 parent 7833d5d commit aa9100f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration/99problems-11-to-20.t
Expand Up @@ -19,11 +19,11 @@ plan 25;

for @list {
$x = $_;
if $x eq $previous {
$count++;
next;
}
if defined $previous {
if $x eq $previous {
$count++;
next;
}
@encoded.push( 1 == $count ?? $previous !! [$count, $previous]);
$count = 1;
}
Expand Down Expand Up @@ -70,7 +70,7 @@ plan 25;

sub encode_direct {
my @chars = @_;
my $encoded;
my $encoded = '';
my $prev_ch = '';
my $ch_cnt = 0;
while (my $ch = @chars.shift) {
Expand Down

0 comments on commit aa9100f

Please sign in to comment.