1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
Notes on porting the perl runtime PP engine.
Importance: 1 = who cares?, 10 = vital
Difficulty: 1 = trivial, 10 = very difficult. Level assumes a
reasonable implementation of the SV and OP API already ported.
OP Import Diff Comments
null 10 1
stub 10 1
scalar 10 1
pushmark 10 1 PUSHMARK
wantarray 7 3 cxstack, dopoptosub
const 10 1
gvsv 10 1 save_scalar
gv 10 1
gelem 3 3
padsv 10 2 SAVECLEARSV, provide_ref
padav 10 2
padhv 10 2
padany 1 1
pushre 7 3 pushes an op. Blech.
rv2gv 6 5
rv2sv 10 4
av2arylen 7 3 sv_magic
rv2cv 8 5 sv_2cv
anoncode 7 6 cv_clone
prototype 4 4 sv_2cv
refgen 8 3
srefgen 8 2
ref 8 3
bless 7 3
backtick 5 4
glob 5 2 do_readline
readline 8 2 do_readline
rcatline 8 2
regcmaybe 8 1
regcomp 8 9 pregcomp
match 8 10
subst 8 10
substcont 8 7
trans 7 4 do_trans
sassign 10 3 mg_find, SvSETMAGIC
aassign 10 5
chop 8 3 do_chop
schop 8 3 do_chop
chomp 8 3 do_chomp
schomp 8 3 do_chomp
defined 10 2
undef 10 3
study 4 5
pos 8 3 PVLV, mg_find
preinc 10 2 sv_inc, SvSETMAGIC
i_preinc
predec 10 2 sv_dec, SvSETMAGIC
i_predec
postinc 10 2 sv_dec, SvSETMAGIC
i_postinc
postdec 10 2 sv_dec, SvSETMAGIC
i_postdec
pow 10 1
multiply 10 1
i_multiply 10 1
divide 10 2
i_divide 10 1
modulo 10 2
i_modulo 10 1
repeat 6 4
add 10 1
i_add 10 1
subtract 10 1
i_subtract 10 1
concat 10 2 mg_get
stringify 10 2 sv_setpvn
left_shift 10 1
right_shift 10 1
lt 10 1
i_lt 10 1
gt 10 1
i_gt 10 1
le 10 1
i_le 10 1
ge 10 1
i_ge 10 1
eq 10 1
i_eq 10 1
ne 10 1
i_ne 10 1
ncmp 10 1
i_ncmp 10 1
slt 10 2
sgt 10 2
sle 10 2
sge 10 2
seq 10 2 sv_eq
sne 10 2
scmp 10 2
bit_and 10 2
bit_xor 10 2
bit_or 10 2
negate 10 3
i_negate 10 1
not 10 1
complement 10 3
atan2 6 1
sin 6 1
cos 6 1
rand 5 2
srand 5 2
exp 6 1
log 6 2
sqrt 6 2
int 10 2
hex 9 2
oct 9 2
abs 10 1
length 10 1
substr 10 4 PVLV
vec 5 4
index 9 3
rindex 9 3
sprintf 9 4 do_sprintf
formline 6 7
ord 6 2
chr 6 2
crypt 3 2
ucfirst 6 2
lcfirst 6 2
uc 6 2
lc 6 2
quotemeta 6 3
rv2av 10 3 save_svref, mg_get, save_ary
aelemfast 10 2 av_fetch
aelem 10 3
aslice 9 4
each 10 3 hv_iternext
values 10 3 do_kv
keys 10 3 do_kv
delete 10 3
exists 10 3
rv2hv 10 3 save_svref, mg_get, save_ary, do_kv
helem 10 3 save_svref, provide_ref
hslice 9 4
unpack 9 6 lengthy
pack 9 6 lengthy
split 9 9
join 10 4 do_join
list 10 2
lslice 9 4
anonlist 10 2
anonhash 10 3
splice 9 6
push 10 2
pop 10 2
shift 10 2
unshift 10 2
sort 6 7
reverse 9 4
grepstart 6 5 modifies flow of control
grepwhile 6 5 modifies flow of control
mapstart 1 1
mapwhile 6 5 modifies flow of control
range 7 3 modifies flow of control
flip 7 4 modifies flow of control
flop 7 4 modifies flow of control
and 10 3 modifies flow of control
or 10 3 modifies flow of control
xor
cond_expr 10 3 modifies flow of control
andassign 7 3 modifies flow of control
orassign 7 3 modifies flow of control
method 8 5
entersub 10 7
leavesub 10 5
caller 2 8
warn 9 3
die 9 3
reset 2 2
lineseq 1 1
nextstate 10 1 Update stack_sp from cxstack. FREETMPS.
dbstate 3 7
unstack
enter 10 3 cxstack, ENTER, SAVETMPS, PUSHBLOCK
leave 10 3 cxstack, SAVETMPS, LEAVE, POPBLOCK
scope 1 1
enteriter 9 4 cxstack
iter 9 3 cxstack
enterloop 10 4
leaveloop 10 4
return 10 5
last 9 6
next 9 6
redo 9 6
dump 1 9 pp_goto
goto 6 9
exit 9 2 my_exit
open 9 5 do_open
close 9 3 do_close
pipe_op 7 4
fileno 9 2
umask 4 2
binmode 4 2
tie 5 5 pp_entersub
untie 5 2 sv_unmagic
tied 5 2
dbmopen 4 5
dbmclose 4 2
sselect 4 4
select 7 3
getc 7 2
read 8 2 pp_sysread
enterwrite 4 4 doform
leavewrite 4 5
prtf 4 4 do_sprintf
print 8 6
sysopen 8 2
sysread 8 4
syswrite 8 4 pp_send
send 8 4
recv 8 4 pp_sysread
eof 9 2
tell 9 3
seek 9 2
truncate 8 3
fcntl 8 4 pp_ioctl
ioctl 8 4
flock 8 2
socket 5 3
sockpair 5 3
bind 5 3
connect 5 3
listen 5 3
accept 5 3
shutdown 5 2
gsockopt 5 3 pp_ssockopt
ssockopt 5 3
getsockname 5 3 pp_getpeername
getpeername 5 3
lstat 5 4 pp_stat
stat 5 4 lengthy
ftrread 5 2 cando
ftrwrite 5 2 cando
ftrexec 5 2 cando
fteread 5 2 cando
ftewrite 5 2 cando
fteexec 5 2 cando
ftis 5 2 cando
fteowned 5 2 cando
ftrowned 5 2 cando
ftzero 5 2 cando
ftsize 5 2 cando
ftmtime 5 2 cando
ftatime 5 2 cando
ftctime 5 2 cando
ftsock 5 2 cando
ftchr 5 2 cando
ftblk 5 2 cando
ftfile 5 2 cando
ftdir 5 2 cando
ftpipe 5 2 cando
ftlink 5 2 cando
ftsuid 5 2 cando
ftsgid 5 2 cando
ftsvtx 5 2 cando
fttty 5 2 cando
fttext 5 4
ftbinary 5 4 fttext
chdir
chown
chroot
unlink
chmod
utime
rename
link
symlink
readlink
mkdir
rmdir
open_dir
readdir
telldir
seekdir
rewinddir
closedir
fork
wait
waitpid
system
exec
kill
getppid
getpgrp
setpgrp
getpriority
setpriority
time
tms
localtime
gmtime
alarm
sleep
shmget
shmctl
shmread
shmwrite
msgget
msgctl
msgsnd
msgrcv
semget
semctl
semop
require 6 9 doeval
dofile 6 9 doeval
entereval 6 9 doeval
leaveeval 6 5
entertry 7 4 modifies flow of control
leavetry 7 3
ghbyname
ghbyaddr
ghostent
gnbyname
gnbyaddr
gnetent
gpbyname
gpbynumber
gprotoent
gsbyname
gsbyport
gservent
shostent
snetent
sprotoent
sservent
ehostent
enetent
eprotoent
eservent
gpwnam
gpwuid
gpwent
spwent
epwent
ggrnam
ggrgid
ggrent
sgrent
egrent
getlogin
syscall
|