Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t/spec] Initialize the collecting string so avoid tangential issues …

…about what uninitialized variables stringify as.

git-svn-id: http://svn.pugscode.org/pugs@29696 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit aedfe39dfeac58fc9833f5c1c96845dd34e35b79 1 parent afa08e5
colomon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 S04-statements/while.t
View
4 S04-statements/while.t
@@ -50,7 +50,7 @@ plan 9;
# while ... -> $x {...}
{
my @array = 1..5;
- my $str;
+ my $str = "";
while @array.pop -> $x {
$str ~= $x;
}
@@ -60,7 +60,7 @@ plan 9;
#?mildew skip 1
{
my @array = 0..5;
- my $str;
+ my $str = "";
while pop @array -> $x {
$str ~= $x;
}
Please sign in to comment.
Something went wrong with that request. Please try again.