From: Michael G Schwern <schwern@pobox.com>
Date: Wed, 13 Jul 2005 15:57:39 -0700
Message-ID: <
20050713225739.GN24499@windhund.schwern.org>
Subject: Re: [PATCH blead] Re: [perl #3269] no warnings "foo" without "use warnings" turns off all warnings.
From: Rick Delaney <rick@bort.ca>
Date: Wed, 13 Jul 2005 20:24:56 -0400
Message-ID: <
20050714002456.GD19090@localhost.localdomain>
p4raw-id: //depot/perl@25153
no warnings 'uninitialized';
$declared = exists $self->{'subs_declared'}{$kid}
|| (
- defined &{ %{$self->{'curstash'}."::"}->{$kid} }
+ defined &{ ${$self->{'curstash'}."::"}{$kid} }
&& !exists
$self->{'subs_deparsed'}{$self->{'curstash'}."::".$kid}
&& defined prototype $self->{'curstash'}."::".$kid
{
no warnings 'uninitialized';
- my $x, $y;
+ my ($x, $y);
eval {
$y ="$x\n";
++$x;
ok($x == 1, $x);
ok($@ eq '', $@);
- my $p, $q;
+ my ($p, $q);
eval {
$q ="$p\n";
--$p;