diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-09-10 14:04:40 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-09-10 14:04:40 +0000 |
commit | c23d26f1e11019054656e6c9c69399fc01735c9a (patch) | |
tree | 15fa2c384845dacad33ea0242d5cb80a97752ac7 /t/op | |
parent | 26eb7f2f635a8c4bff4344ddc1af3ed74ba4c24b (diff) | |
download | perl-c23d26f1e11019054656e6c9c69399fc01735c9a.tar.gz |
silence warning in new state.t test (spotted by Jerry Hedden)
p4raw-id: //depot/perl@31840
Diffstat (limited to 't/op')
-rw-r--r-- | t/op/state.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/op/state.t b/t/op/state.t index 1c4fc8ca81..411ffaa30e 100644 --- a/t/op/state.t +++ b/t/op/state.t @@ -338,7 +338,7 @@ foreach my $spam (@spam) { { my $x; # used to force a closure my @f; - push @f, sub { $x; state $s = $_[0]; $s } for 1..2; + push @f, sub { $x=0; state $s = $_[0]; $s } for 1..2; is $f[0]->(1), 1; is $f[0]->(2), 1; is $f[1]->(3), 3; |