We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22496f1 commit e95ec34Copy full SHA for e95ec34
peep.c
@@ -3124,6 +3124,23 @@ Perl_rpeep(pTHX_ OP *o)
3124
3125
case OP_PUSHMARK:
3126
3127
+ /* Given
3128
+ pushmark
3129
+ null
3130
+ something_else
3131
+ Take out the null wherever possible.
3132
+ */
3133
+ while (OP_TYPE_IS(o->op_next, OP_NULL)) {
3134
+ OP* next = o->op_next;
3135
+ o->op_next = next->op_next;
3136
+ if (OpSIBLING(o) == next &&
3137
+ next->op_moresib &&
3138
+ !(next->op_flags & OPf_KIDS)) {
3139
+ op_sibling_splice(NULL, o, 1, NULL);
3140
+ op_free(next);
3141
+ }
3142
3143
+
3144
/* Given
3145
5 repeat/DOLIST
3146
3 ex-list
0 commit comments