From: Jarkko Hietaniemi Date: Mon, 7 Aug 2000 19:49:53 +0000 (+0000) Subject: use warnings instead of $^W. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=43a954afd829e8b7def214b1283f45da65911de2;p=p5sagit%2Fp5-mst-13.2.git use warnings instead of $^W. p4raw-id: //depot/perl@6543 --- diff --git a/t/op/bless.t b/t/op/bless.t index 7e7de4f..a5813d6 100644 --- a/t/op/bless.t +++ b/t/op/bless.t @@ -94,7 +94,7 @@ print expected(bless({}, $1), "E", "HASH"), "ok 19\n"; print expected(bless([]), 'main', "ARRAY"), "ok 22\n"; { local $SIG{__WARN__} = sub { push @w, join '', @_ }; - local $^W = 1; + use warnings; $m = bless []; print expected($m, 'main', "ARRAY"), "ok 23\n";