Message-ID: <
20030116171237.C420@fdgroup.com>
(with a small test tweak)
p4raw-id: //depot/perl@18571
continue;
}
else {
- if (
- ( seq > (U32)I_32(SvNVX(sv)) /* min */
- && seq <= (U32)SvIVX(sv)) /* max */
- ||
- /* 'our' is visible before introduction */
- (!SvIVX(sv) && (SvFLAGS(sv) & SVpad_OUR))
- )
+ if ( seq > (U32)I_32(SvNVX(sv)) /* min */
+ && seq <= (U32)SvIVX(sv)) /* max */
return off;
}
}
require './test.pl';
}
-print "1..6\n";
+print "1..7\n";
{
package TieAll;
{our (@x);}
is(TieAll->calls, '', 'our (@x) has no runtime effect');
+
+
+$y = 1;
+{
+ my $y = 2;
+ {
+ our $y = $y;
+ is($y, 2, 'our shouldnt be visible until introduced')
+ }
+}
*/
if (!strchr(PL_tokenbuf,':')) {
- if ((tmp = pad_findmy(PL_tokenbuf)) != NOT_IN_PAD) {
+ if (!PL_in_my)
+ tmp = pad_findmy(PL_tokenbuf);
+ if (tmp != NOT_IN_PAD) {
/* might be an "our" variable" */
if (PAD_COMPNAME_FLAGS(tmp) & SVpad_OUR) {
/* build ops for a bareword */