]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
In t/30-scope.t, avoid failures for "eval 'no indirect; $x = new Foo'" for being...
authorVincent Pit <vince@profvince.com>
Fri, 5 Dec 2008 23:25:15 +0000 (00:25 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 5 Dec 2008 23:25:15 +0000 (00:25 +0100)
t/30-scope.t

index 414c9c759bcbb4d304104e7522d3d7ece4bc9a47..f3586890c876e2583128df3b1f2682695d22cd48 100644 (file)
@@ -43,7 +43,7 @@ sub expect {
 }
 
 {
 }
 
 {
- my $w;
+ my $w = '';
  local $SIG{__WARN__} = sub {
   $w = 'more than 2 warnings' if $w;
   $w = join '', 'warn:', @_
  local $SIG{__WARN__} = sub {
   $w = 'more than 2 warnings' if $w;
   $w = join '', 'warn:', @_