14 open OP, qq{$^X -le 'print "aaa Ok ok" while \$i++ < 100'|};
16 @chopar = (113 .. 119);
24 print "1..", (scalar @INPUT), "\n";
31 ($op, undef, $comment) = /^([^\#]+)(\#\s+(.*))?/;
32 $comment = $op unless defined $comment;
33 $op = "$op==$op" unless $op =~ /==/;
34 ($op, $expectop) = $op =~ /(.*)==(.*)/;
36 $skip = ($op =~ /^'\?\?\?'/) ? "skip" : "not";
37 $integer = ($comment =~ /^i_/) ? "use integer" : '' ;
38 (print "#skipping $comment:\nok $ord\n"), next if $skip eq 'skip';
41 local \$SIG{__WARN__} = \\&wrn;
47 print "# \$comment: got `\$a', expected `\$b'\n";
48 print "\$skip " if \$a ne \$b or \$skip eq 'skip';
53 if ($@ =~ /is unimplemented/) {
54 print "# skipping $comment: unimplemented:\nok $ord\n";
57 print "not ok $ord\n";
63 ref $cstr # ref nonref
65 `$undefed` # backtick undef
69 (@z = (1 .. 3)) # aassign
71 (chop (@x=@chopar)) # schop
73 (chop (@x=@chopar)) # schomp
75 pos $chopit # pos returns undef
93 $n . $a=='2fake' # concat with self
94 "3$a"=='3fake' # concat with self in stringify
97 $n >> $n # right_shift
118 length $posstr # length
119 substr $posstr, 2, 2 # substr
121 index $posstr, 2 # index
122 rindex $posstr, 2 # rindex
123 sprintf "%i%i", $n, $n # sprintf
127 ucfirst ($cstr . "a") # ucfirst padtmp
128 ucfirst $cstr # ucfirst
129 lcfirst $cstr # lcfirst
132 quotemeta $cstr # quotemeta
134 @$undefed # rv2av undef
139 pack "C2", $n,$n # pack
140 split /a/, "abad" # split
143 unshift @aaa # unshift
145 reverse $cstr # reverse - scal
146 grep $_, 1,0,2,0,3 # grepwhile
147 map "x$_", 1,0,2,0,3 # mapwhile
150 warn "ignore this\n" # warn
152 open BLAH, "<non-existent" # open
153 fileno STDERR # fileno
155 select STDOUT # sselect
156 select "","","",0 # select
173 chdir 'non-existent' # chdir
176 unlink 'non-existent' # unlink
177 chmod 'non-existent' # chmod
178 utime 'non-existent' # utime
179 rename 'non-existent', 'non-existent1' # rename
180 link 'non-existent', 'non-existent1' # link
181 symlink 'non-existent', 'non-existent1' # symlink
182 readlink 'non-existent', 'non-existent1' # readlink
189 system 'sh -c true' # system
195 getpriority $$, $$ # getpriority
198 localtime # localtime