7 if (pos($x)==2) {print "ok 1\n"} else {print "not ok 1\n";}
10 if (pos($x)==2) {print "ok 2\n"} else {print "not ok 2\n";}
12 sub f { my $p=$_[0]; return $p }
15 if (f(pos($x))==4) {print "ok 3\n"} else {print "not ok 3\n";}
17 # Is pos() set inside //g? (bug id 19990615.008)
18 $x = "test string?"; $x =~ s/\w/pos($x)/eg;
19 print "not " unless $x eq "0123 5678910?";