Subject: [PATCH] length of undefined $(digit) should warn
Message-ID: <
20020115230244.A31786@rafael>
p4raw-id: //depot/perl@14302
Perl_croak(aTHX_ "panic: magic_len: %"IVdf, (IV)i);
return i;
}
+ else {
+ if (ckWARN(WARN_UNINITIALIZED))
+ report_uninit();
+ }
+ }
+ else {
+ if (ckWARN(WARN_UNINITIALIZED))
+ report_uninit();
}
return 0;
case '+':
$SIG{"INT"} = "fred"; kill "INT",$$;
EXPECT
+########
+# mg.c
+use warnings 'uninitialized';
+'foo' =~ /(b)(a)(r)/;
+length $3;
+EXPECT
+Use of uninitialized value in length at - line 4.