From: Stephen P. Potter <spp@ds.net>
Date: Fri, 13 Oct 2000 13:32:49 +0000 (-0400)
Subject: -w cleanup.
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0a911d86da56c706ebc19e3b3677267e042023b7;p=p5sagit%2Fp5-mst-13.2.git

-w cleanup.

Subject: Re: Problems with bleadperl
Message-Id: <200010131732.NAA19391@spp.users.ds.net>

p4raw-id: //depot/perl@7240
---

diff --git a/t/pragma/overload.t b/t/pragma/overload.t
index c57eb11..c7105dc 100755
--- a/t/pragma/overload.t
+++ b/t/pragma/overload.t
@@ -939,7 +939,7 @@ unless ($aaa) {
 {
     # check the Odd number of arguments for overload::constant warning
     my $a = "" ;
-    local $SIG{__WARN__} = sub {$a = @_[0]} ;
+    local $SIG{__WARN__} = sub {$a = $_[0]} ;
     $x = eval ' overload::constant "integer" ; ' ;
     test($a eq "") ; # 210
     use warnings 'overload' ;
@@ -950,7 +950,7 @@ unless ($aaa) {
 {
     # check the `$_[0]' is not an overloadable type warning
     my $a = "" ;
-    local $SIG{__WARN__} = sub {$a = @_[0]} ;
+    local $SIG{__WARN__} = sub {$a = $_[0]} ;
     $x = eval ' overload::constant "fred" => sub {} ; ' ;
     test($a eq "") ; # 212
     use warnings 'overload' ;
@@ -961,7 +961,7 @@ unless ($aaa) {
 {
     # check the `$_[1]' is not a code reference warning
     my $a = "" ;
-    local $SIG{__WARN__} = sub {$a = @_[0]} ;
+    local $SIG{__WARN__} = sub {$a = $_[0]} ;
     $x = eval ' overload::constant "integer" => 1; ' ;
     test($a eq "") ; # 214
     use warnings 'overload' ;