Inaba Hiroto writes: > After `next' or `redo', pattern match variables are reset to the block's > initial value. > > $_ = foo; /foo/; > for (qw/bar baz/) { print "$&\n" unless /bar/; } # print "bar\n" > for (qw/bar baz/) { next if /bar/; print "$&\n"; } # print "foo\n" > > I think it is a bug What made you think so? What other block-local things behave like this? IlyaThread Previous | Thread Next