Warning bit fixes to t/op/caller.t
[p5sagit/p5-mst-13.2.git] / t / op / regexp_namedcapture.t
CommitLineData
80305961 1#!./perl
80305961 2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6}
7
67261566 8# WARNING: Do not use anymodules as part of this test code.
9# We could get action at a distance that would invalidate the tests.
10
11print "1..2\n";
12
13# This tests whether glob assignment fails to load the tie.
80305961 14*X = *-;
67261566 15'X'=~/(?<X>X)/;
16print eval '*X{HASH}{X} || 1' ? "" :"not ","ok ",++$test,"\n";
17
18# And since its a similar case we check %! as well
19*Y = *!;
20print 0<keys(%Y) ? "" :"not ","ok ",++$test,"\n";