This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use IsForeign throughout example
[perl5.git] / perly.act
index 668ab00..00192e6 100644 (file)
--- a/perly.act
+++ b/perly.act
  */
 
 case 2:
-#line 115 "perly.y"
+#line 138 "perly.y"
     {
                          parser->expect = XSTATE;
-                       ;}
+                          (yyval.ival) = 0;
+                       }
+
     break;
 
   case 3:
-#line 119 "perly.y"
+#line 143 "perly.y"
     {
-                         newPROG(block_end((ps[(3) - (4)].val.ival),(ps[(4) - (4)].val.opval)));
+                         newPROG(block_end((ps[-1].val.ival),(ps[0].val.opval)));
                          PL_compiling.cop_seq = 0;
                          (yyval.ival) = 0;
-                       ;}
+                       }
+
     break;
 
   case 4:
-#line 125 "perly.y"
+#line 149 "perly.y"
     {
                          parser->expect = XTERM;
-                       ;}
+                          (yyval.ival) = 0;
+                       }
+
     break;
 
   case 5:
-#line 129 "perly.y"
+#line 154 "perly.y"
     {
-                         PL_eval_root = (ps[(3) - (3)].val.opval);
+                         PL_eval_root = (ps[0].val.opval);
                          (yyval.ival) = 0;
-                       ;}
+                       }
+
     break;
 
   case 6:
-#line 134 "perly.y"
+#line 159 "perly.y"
     {
                          parser->expect = XBLOCK;
-                       ;}
+                          (yyval.ival) = 0;
+                       }
+
     break;
 
   case 7:
-#line 138 "perly.y"
+#line 164 "perly.y"
     {
                          PL_pad_reset_pending = TRUE;
-                         PL_eval_root = (ps[(3) - (3)].val.opval);
+                         PL_eval_root = (ps[0].val.opval);
                          (yyval.ival) = 0;
                          yyunlex();
-                         parser->yychar = YYEOF;
-                       ;}
+                         parser->yychar = yytoken = YYEOF;
+                       }
+
     break;
 
   case 8:
-#line 146 "perly.y"
+#line 172 "perly.y"
     {
                          parser->expect = XSTATE;
-                       ;}
+                          (yyval.ival) = 0;
+                       }
+
     break;
 
   case 9:
-#line 150 "perly.y"
+#line 177 "perly.y"
     {
                          PL_pad_reset_pending = TRUE;
-                         PL_eval_root = (ps[(3) - (3)].val.opval);
+                         PL_eval_root = (ps[0].val.opval);
                          (yyval.ival) = 0;
                          yyunlex();
-                         parser->yychar = YYEOF;
-                       ;}
+                         parser->yychar = yytoken = YYEOF;
+                       }
+
     break;
 
   case 10:
-#line 158 "perly.y"
+#line 185 "perly.y"
     {
                          parser->expect = XSTATE;
-                       ;}
+                          (yyval.ival) = 0;
+                       }
+
     break;
 
   case 11:
-#line 162 "perly.y"
+#line 190 "perly.y"
     {
                          PL_pad_reset_pending = TRUE;
-                         PL_eval_root = (ps[(3) - (3)].val.opval);
+                         PL_eval_root = (ps[0].val.opval);
                          (yyval.ival) = 0;
                          yyunlex();
-                         parser->yychar = YYEOF;
-                       ;}
+                         parser->yychar = yytoken = YYEOF;
+                       }
+
     break;
 
   case 12:
-#line 170 "perly.y"
+#line 198 "perly.y"
     {
                          parser->expect = XSTATE;
-                       ;}
+                          (yyval.ival) = 0;
+                       }
+
     break;
 
   case 13:
-#line 174 "perly.y"
+#line 203 "perly.y"
     {
-                         PL_eval_root = (ps[(3) - (3)].val.opval);
+                         PL_eval_root = (ps[0].val.opval);
                          (yyval.ival) = 0;
-                       ;}
+                       }
+
     break;
 
   case 14:
-#line 182 "perly.y"
-    { if (parser->copline > (line_t)(ps[(1) - (4)].val.ival))
-                             parser->copline = (line_t)(ps[(1) - (4)].val.ival);
-                         (yyval.opval) = block_end((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval));
-                       ;}
+#line 208 "perly.y"
+    {
+                         parser->expect = XSTATE;
+                         (yyval.ival) = 0;
+                       }
+
     break;
 
   case 15:
-#line 190 "perly.y"
-    { if (parser->copline > (line_t)(ps[(1) - (7)].val.ival))
-                             parser->copline = (line_t)(ps[(1) - (7)].val.ival);
-                         (yyval.opval) = block_end((ps[(2) - (7)].val.ival), (ps[(5) - (7)].val.opval));
-                       ;}
+#line 213 "perly.y"
+    {
+                         PL_eval_root = (ps[0].val.opval);
+                         (yyval.ival) = 0;
+                       }
+
     break;
 
   case 16:
-#line 197 "perly.y"
-    { (yyval.ival) = block_start(TRUE);
-                         parser->parsed_sub = 0; ;}
+#line 221 "perly.y"
+    { if (parser->copline > (line_t)(ps[-3].val.ival))
+                             parser->copline = (line_t)(ps[-3].val.ival);
+                         (yyval.opval) = block_end((ps[-2].val.ival), (ps[-1].val.opval));
+                       }
+
     break;
 
   case 17:
-#line 202 "perly.y"
-    { if (parser->copline > (line_t)(ps[(1) - (4)].val.ival))
-                             parser->copline = (line_t)(ps[(1) - (4)].val.ival);
-                         (yyval.opval) = block_end((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval));
-                       ;}
+#line 229 "perly.y"
+    { if (parser->copline > (line_t)(ps[-6].val.ival))
+                             parser->copline = (line_t)(ps[-6].val.ival);
+                         (yyval.opval) = block_end((ps[-5].val.ival), (ps[-2].val.opval));
+                       }
+
     break;
 
   case 18:
-#line 209 "perly.y"
-    { (yyval.ival) = block_start(FALSE);
-                         parser->parsed_sub = 0; ;}
+#line 236 "perly.y"
+    { (yyval.ival) = block_start(TRUE);
+                         parser->parsed_sub = 0; }
+
     break;
 
   case 19:
-#line 215 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 241 "perly.y"
+    { if (parser->copline > (line_t)(ps[-3].val.ival))
+                             parser->copline = (line_t)(ps[-3].val.ival);
+                         (yyval.opval) = block_end((ps[-2].val.ival), (ps[-1].val.opval));
+                       }
+
     break;
 
   case 20:
-#line 217 "perly.y"
-    {   (yyval.opval) = op_append_list(OP_LINESEQ, (ps[(1) - (2)].val.opval), (ps[(2) - (2)].val.opval));
-                           PL_pad_reset_pending = TRUE;
-                           if ((ps[(1) - (2)].val.opval) && (ps[(2) - (2)].val.opval))
-                               PL_hints |= HINT_BLOCK_SCOPE;
-                       ;}
+#line 248 "perly.y"
+    { (yyval.ival) = block_start(FALSE);
+                         parser->parsed_sub = 0; }
+
     break;
 
   case 21:
-#line 226 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 254 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 22:
-#line 228 "perly.y"
-    {   (yyval.opval) = op_append_list(OP_LINESEQ, (ps[(1) - (2)].val.opval), (ps[(2) - (2)].val.opval));
+#line 256 "perly.y"
+    {   (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-1].val.opval), (ps[0].val.opval));
                            PL_pad_reset_pending = TRUE;
-                           if ((ps[(1) - (2)].val.opval) && (ps[(2) - (2)].val.opval))
+                           if ((ps[-1].val.opval) && (ps[0].val.opval))
                                PL_hints |= HINT_BLOCK_SCOPE;
-                       ;}
+                       }
+
     break;
 
   case 23:
-#line 237 "perly.y"
-    {
-                         (yyval.opval) = (ps[(1) - (1)].val.opval) ? newSTATEOP(0, NULL, (ps[(1) - (1)].val.opval)) : NULL;
-                       ;}
+#line 265 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 24:
-#line 241 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 267 "perly.y"
+    {   (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-1].val.opval), (ps[0].val.opval));
+                           PL_pad_reset_pending = TRUE;
+                           if ((ps[-1].val.opval) && (ps[0].val.opval))
+                               PL_hints |= HINT_BLOCK_SCOPE;
+                       }
+
     break;
 
   case 25:
-#line 245 "perly.y"
+#line 276 "perly.y"
     {
-                         (yyval.opval) = newSTATEOP(SVf_UTF8 * (ps[(1) - (2)].val.pval)[strlen((ps[(1) - (2)].val.pval))+1], (ps[(1) - (2)].val.pval), (ps[(2) - (2)].val.opval));
-                       ;}
+                         (yyval.opval) = (ps[0].val.opval) ? newSTATEOP(0, NULL, (ps[0].val.opval)) : NULL;
+                       }
+
     break;
 
   case 26:
-#line 249 "perly.y"
-    {
-                         (yyval.opval) = newSTATEOP(SVf_UTF8 * (ps[(1) - (2)].val.pval)[strlen((ps[(1) - (2)].val.pval))+1], (ps[(1) - (2)].val.pval), (ps[(2) - (2)].val.opval));
-                       ;}
+#line 280 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 27:
-#line 256 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 284 "perly.y"
+    {
+                          SV *label = cSVOPx_sv((ps[-1].val.opval));
+                         (yyval.opval) = newSTATEOP(SvFLAGS(label) & SVf_UTF8,
+                                            savepv(SvPVX_const(label)), (ps[0].val.opval));
+                          op_free((ps[-1].val.opval));
+                       }
+
     break;
 
   case 28:
-#line 258 "perly.y"
+#line 291 "perly.y"
+    {
+                          SV *label = cSVOPx_sv((ps[-1].val.opval));
+                         (yyval.opval) = newSTATEOP(SvFLAGS(label) & SVf_UTF8,
+                                            savepv(SvPVX_const(label)), (ps[0].val.opval));
+                          op_free((ps[-1].val.opval));
+                       }
+
+    break;
+
+  case 29:
+#line 301 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 30:
+#line 303 "perly.y"
     {
                          CV *fmtcv = PL_compcv;
-                         newFORM((ps[(2) - (4)].val.ival), (ps[(3) - (4)].val.opval), (ps[(4) - (4)].val.opval));
-                         (yyval.opval) = (OP*)NULL;
+                         newFORM((ps[-2].val.ival), (ps[-1].val.opval), (ps[0].val.opval));
+                         (yyval.opval) = NULL;
                          if (CvOUTSIDE(fmtcv) && !CvEVAL(CvOUTSIDE(fmtcv))) {
                              pad_add_weakref(fmtcv);
                          }
                          parser->parsed_sub = 1;
-                       ;}
+                       }
+
     break;
 
-  case 29:
-#line 268 "perly.y"
+  case 31:
+#line 315 "perly.y"
     {
-                         if ((ps[(2) - (3)].val.opval)->op_type == OP_CONST) {
-                           const char *const name =
-                               SvPV_nolen_const(((SVOP*)(ps[(2) - (3)].val.opval))->op_sv);
-                           if (strEQ(name, "BEGIN") || strEQ(name, "END")
-                             || strEQ(name, "INIT") || strEQ(name, "CHECK")
-                             || strEQ(name, "UNITCHECK"))
-                             CvSPECIAL_on(PL_compcv);
-                         }
-                         else
-                         /* State subs inside anonymous subs need to be
-                            clonable themselves. */
-                         if (CvANON(CvOUTSIDE(PL_compcv))
-                          || CvCLONE(CvOUTSIDE(PL_compcv))
-                          || !PadnameIsSTATE(PadlistNAMESARRAY(CvPADLIST(
-                                               CvOUTSIDE(PL_compcv)
-                                            ))[(ps[(2) - (3)].val.opval)->op_targ]))
-                             CvCLONE_on(PL_compcv);
+                          init_named_cv(PL_compcv, (ps[-1].val.opval));
                          parser->in_my = 0;
                          parser->in_my_stash = NULL;
-                       ;}
+                       }
+
     break;
 
-  case 30:
-#line 290 "perly.y"
+  case 32:
+#line 321 "perly.y"
     {
                          SvREFCNT_inc_simple_void(PL_compcv);
-                         (ps[(2) - (7)].val.opval)->op_type == OP_CONST
-                             ? newATTRSUB((ps[(3) - (7)].val.ival), (ps[(2) - (7)].val.opval), (ps[(5) - (7)].val.opval), (ps[(6) - (7)].val.opval), (ps[(7) - (7)].val.opval))
-                             : newMYSUB((ps[(3) - (7)].val.ival), (ps[(2) - (7)].val.opval), (ps[(5) - (7)].val.opval), (ps[(6) - (7)].val.opval), (ps[(7) - (7)].val.opval))
+                         (ps[-5].val.opval)->op_type == OP_CONST
+                             ? newATTRSUB((ps[-4].val.ival), (ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval))
+                             : newMYSUB((ps[-4].val.ival), (ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval))
                          ;
-                         (yyval.opval) = (OP*)NULL;
+                         (yyval.opval) = NULL;
                          intro_my();
                          parser->parsed_sub = 1;
-                       ;}
+                       }
+
     break;
 
-  case 31:
-#line 301 "perly.y"
+  case 33:
+#line 336 "perly.y"
     {
-                         if ((ps[(2) - (3)].val.opval)->op_type == OP_CONST) {
-                           const char *const name =
-                               SvPV_nolen_const(((SVOP*)(ps[(2) - (3)].val.opval))->op_sv);
-                           if (strEQ(name, "BEGIN") || strEQ(name, "END")
-                             || strEQ(name, "INIT") || strEQ(name, "CHECK")
-                             || strEQ(name, "UNITCHECK"))
-                             CvSPECIAL_on(PL_compcv);
-                         }
-                         else
-                         /* State subs inside anonymous subs need to be
-                            clonable themselves. */
-                         if (CvANON(CvOUTSIDE(PL_compcv))
-                          || CvCLONE(CvOUTSIDE(PL_compcv))
-                          || !PadnameIsSTATE(PadlistNAMESARRAY(CvPADLIST(
-                                               CvOUTSIDE(PL_compcv)
-                                            ))[(ps[(2) - (3)].val.opval)->op_targ]))
-                             CvCLONE_on(PL_compcv);
+                          init_named_cv(PL_compcv, (ps[-1].val.opval));
                          parser->in_my = 0;
                          parser->in_my_stash = NULL;
-                       ;}
+                       }
+
     break;
 
-  case 32:
-#line 323 "perly.y"
+  case 34:
+#line 342 "perly.y"
     {
-                         OP *body;
-                         if (parser->copline > (line_t)(ps[(8) - (10)].val.ival))
-                             parser->copline = (line_t)(ps[(8) - (10)].val.ival);
-                         body = block_end((ps[(5) - (10)].val.ival),
-                               op_append_list(OP_LINESEQ, (ps[(6) - (10)].val.opval), (ps[(9) - (10)].val.opval)));
-
                          SvREFCNT_inc_simple_void(PL_compcv);
-                         (ps[(2) - (10)].val.opval)->op_type == OP_CONST
-                             ? newATTRSUB((ps[(3) - (10)].val.ival), (ps[(2) - (10)].val.opval), NULL, (ps[(7) - (10)].val.opval), body)
-                             : newMYSUB((ps[(3) - (10)].val.ival), (ps[(2) - (10)].val.opval), NULL, (ps[(7) - (10)].val.opval), body)
+                         (ps[-4].val.opval)->op_type == OP_CONST
+                             ? newATTRSUB((ps[-3].val.ival), (ps[-4].val.opval), NULL, (ps[-1].val.opval), (ps[0].val.opval))
+                             : newMYSUB(  (ps[-3].val.ival), (ps[-4].val.opval), NULL, (ps[-1].val.opval), (ps[0].val.opval))
                          ;
-                         (yyval.opval) = (OP*)NULL;
+                         (yyval.opval) = NULL;
                          intro_my();
                          parser->parsed_sub = 1;
-                       ;}
-    break;
-
-  case 33:
-#line 340 "perly.y"
-    {
-                         package((ps[(3) - (4)].val.opval));
-                         if ((ps[(2) - (4)].val.opval))
-                             package_version((ps[(2) - (4)].val.opval));
-                         (yyval.opval) = (OP*)NULL;
-                       ;}
-    break;
+                       }
 
-  case 34:
-#line 347 "perly.y"
-    { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ ;}
     break;
 
   case 35:
-#line 349 "perly.y"
+#line 353 "perly.y"
     {
-                         SvREFCNT_inc_simple_void(PL_compcv);
-                         utilize((ps[(1) - (7)].val.ival), (ps[(2) - (7)].val.ival), (ps[(4) - (7)].val.opval), (ps[(5) - (7)].val.opval), (ps[(6) - (7)].val.opval));
-                         parser->parsed_sub = 1;
-                         (yyval.opval) = (OP*)NULL;
-                       ;}
+                         package((ps[-1].val.opval));
+                         if ((ps[-2].val.opval))
+                             package_version((ps[-2].val.opval));
+                         (yyval.opval) = NULL;
+                       }
+
     break;
 
   case 36:
-#line 356 "perly.y"
-    {
-                         (yyval.opval) = block_end((ps[(3) - (7)].val.ival),
-                             newCONDOP(0, (ps[(4) - (7)].val.opval), op_scope((ps[(6) - (7)].val.opval)), (ps[(7) - (7)].val.opval)));
-                         parser->copline = (line_t)(ps[(1) - (7)].val.ival);
-                       ;}
+#line 360 "perly.y"
+    { CvSPECIAL_on(PL_compcv); /* It's a BEGIN {} */ }
+
     break;
 
   case 37:
 #line 362 "perly.y"
     {
-                         (yyval.opval) = block_end((ps[(3) - (7)].val.ival),
-                              newCONDOP(0, (ps[(4) - (7)].val.opval), (ps[(7) - (7)].val.opval), op_scope((ps[(6) - (7)].val.opval))));
-                         parser->copline = (line_t)(ps[(1) - (7)].val.ival);
-                       ;}
+                         SvREFCNT_inc_simple_void(PL_compcv);
+                         utilize((ps[-6].val.ival), (ps[-5].val.ival), (ps[-3].val.opval), (ps[-2].val.opval), (ps[-1].val.opval));
+                         parser->parsed_sub = 1;
+                         (yyval.opval) = NULL;
+                       }
+
     break;
 
   case 38:
-#line 368 "perly.y"
+#line 369 "perly.y"
     {
-                         (yyval.opval) = block_end((ps[(3) - (6)].val.ival), newGIVENOP((ps[(4) - (6)].val.opval), op_scope((ps[(6) - (6)].val.opval)), 0));
-                         parser->copline = (line_t)(ps[(1) - (6)].val.ival);
-                       ;}
+                         (yyval.opval) = block_end((ps[-4].val.ival),
+                             newCONDOP(0, (ps[-3].val.opval), op_scope((ps[-1].val.opval)), (ps[0].val.opval)));
+                         parser->copline = (line_t)(ps[-6].val.ival);
+                       }
+
     break;
 
   case 39:
-#line 373 "perly.y"
-    { (yyval.opval) = block_end((ps[(3) - (6)].val.ival), newWHENOP((ps[(4) - (6)].val.opval), op_scope((ps[(6) - (6)].val.opval)))); ;}
+#line 375 "perly.y"
+    {
+                         (yyval.opval) = block_end((ps[-4].val.ival),
+                              newCONDOP(0, (ps[-3].val.opval), (ps[0].val.opval), op_scope((ps[-1].val.opval))));
+                         parser->copline = (line_t)(ps[-6].val.ival);
+                       }
+
     break;
 
   case 40:
-#line 375 "perly.y"
-    { (yyval.opval) = newWHENOP(0, op_scope((ps[(2) - (2)].val.opval))); ;}
+#line 381 "perly.y"
+    {
+                         (yyval.opval) = block_end((ps[-3].val.ival), newGIVENOP((ps[-2].val.opval), op_scope((ps[0].val.opval)), 0));
+                         parser->copline = (line_t)(ps[-5].val.ival);
+                       }
+
     break;
 
   case 41:
-#line 377 "perly.y"
-    {
-                         (yyval.opval) = block_end((ps[(3) - (8)].val.ival),
-                                 newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
-                                     (ps[(4) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval), (ps[(6) - (8)].val.ival)));
-                         parser->copline = (line_t)(ps[(1) - (8)].val.ival);
-                       ;}
+#line 386 "perly.y"
+    { (yyval.opval) = block_end((ps[-3].val.ival), newWHENOP((ps[-2].val.opval), op_scope((ps[0].val.opval)))); }
+
     break;
 
   case 42:
-#line 384 "perly.y"
-    {
-                         (yyval.opval) = block_end((ps[(3) - (8)].val.ival),
-                                 newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
-                                     (ps[(4) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval), (ps[(6) - (8)].val.ival)));
-                         parser->copline = (line_t)(ps[(1) - (8)].val.ival);
-                       ;}
+#line 388 "perly.y"
+    { (yyval.opval) = newWHENOP(0, op_scope((ps[0].val.opval))); }
+
     break;
 
   case 43:
-#line 391 "perly.y"
-    { parser->expect = XTERM; ;}
+#line 390 "perly.y"
+    {
+                         (yyval.opval) = block_end((ps[-5].val.ival),
+                                 newWHILEOP(0, 1, NULL,
+                                     (ps[-4].val.opval), (ps[-1].val.opval), (ps[0].val.opval), (ps[-2].val.ival)));
+                         parser->copline = (line_t)(ps[-7].val.ival);
+                       }
+
     break;
 
   case 44:
-#line 393 "perly.y"
-    { parser->expect = XTERM; ;}
+#line 397 "perly.y"
+    {
+                         (yyval.opval) = block_end((ps[-5].val.ival),
+                                 newWHILEOP(0, 1, NULL,
+                                     (ps[-4].val.opval), (ps[-1].val.opval), (ps[0].val.opval), (ps[-2].val.ival)));
+                         parser->copline = (line_t)(ps[-7].val.ival);
+                       }
+
     break;
 
   case 45:
-#line 396 "perly.y"
+#line 404 "perly.y"
+    { parser->expect = XTERM; }
+
+    break;
+
+  case 46:
+#line 406 "perly.y"
+    { parser->expect = XTERM; }
+
+    break;
+
+  case 47:
+#line 409 "perly.y"
     {
-                         OP *initop = (ps[(4) - (13)].val.opval);
-                         OP *forop = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
-                                     scalar((ps[(7) - (13)].val.opval)), (ps[(13) - (13)].val.opval), (ps[(11) - (13)].val.opval), (ps[(10) - (13)].val.ival));
+                         OP *initop = (ps[-9].val.opval);
+                         OP *forop = newWHILEOP(0, 1, NULL,
+                                     scalar((ps[-6].val.opval)), (ps[0].val.opval), (ps[-2].val.opval), (ps[-3].val.ival));
                          if (initop) {
                              forop = op_prepend_elem(OP_LINESEQ, initop,
                                  op_append_elem(OP_LINESEQ,
@@ -400,1145 +435,1715 @@ case 2:
                                      forop));
                          }
                          PL_hints |= HINT_BLOCK_SCOPE;
-                         (yyval.opval) = block_end((ps[(3) - (13)].val.ival), forop);
-                         parser->copline = (line_t)(ps[(1) - (13)].val.ival);
-                       ;}
+                         (yyval.opval) = block_end((ps[-10].val.ival), forop);
+                         parser->copline = (line_t)(ps[-12].val.ival);
+                       }
+
     break;
 
-  case 46:
-#line 411 "perly.y"
+  case 48:
+#line 424 "perly.y"
     {
-                         (yyval.opval) = block_end((ps[(3) - (9)].val.ival), newFOROP(0, (ps[(4) - (9)].val.opval), (ps[(6) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval)));
-                         parser->copline = (line_t)(ps[(1) - (9)].val.ival);
-                       ;}
+                         (yyval.opval) = block_end((ps[-6].val.ival), newFOROP(0, (ps[-5].val.opval), (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
+                         parser->copline = (line_t)(ps[-8].val.ival);
+                       }
+
     break;
 
-  case 47:
-#line 416 "perly.y"
+  case 49:
+#line 429 "perly.y"
     {
-                         (yyval.opval) = block_end((ps[(4) - (8)].val.ival), newFOROP(0,
-                                     op_lvalue((ps[(2) - (8)].val.opval), OP_ENTERLOOP), (ps[(5) - (8)].val.opval), (ps[(7) - (8)].val.opval), (ps[(8) - (8)].val.opval)));
-                         parser->copline = (line_t)(ps[(1) - (8)].val.ival);
-                       ;}
+                         (yyval.opval) = block_end((ps[-4].val.ival), newFOROP(0,
+                                     op_lvalue((ps[-6].val.opval), OP_ENTERLOOP), (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
+                         parser->copline = (line_t)(ps[-7].val.ival);
+                       }
+
     break;
 
-  case 48:
-#line 422 "perly.y"
-    { parser->in_my = 0; (yyval.opval) = my((ps[(5) - (5)].val.opval)); ;}
+  case 50:
+#line 435 "perly.y"
+    { parser->in_my = 0; (yyval.opval) = my((ps[0].val.opval)); }
+
     break;
 
-  case 49:
-#line 424 "perly.y"
+  case 51:
+#line 437 "perly.y"
     {
                          (yyval.opval) = block_end(
-                               (ps[(4) - (11)].val.ival),
+                               (ps[-7].val.ival),
                                newFOROP(0,
                                         op_lvalue(
                                            newUNOP(OP_REFGEN, 0,
-                                                   (ps[(6) - (11)].val.opval)),
+                                                   (ps[-5].val.opval)),
                                            OP_ENTERLOOP),
-                                        (ps[(8) - (11)].val.opval), (ps[(10) - (11)].val.opval), (ps[(11) - (11)].val.opval))
+                                        (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval))
                          );
-                         parser->copline = (line_t)(ps[(1) - (11)].val.ival);
-                       ;}
-    break;
-
-  case 50:
-#line 437 "perly.y"
-    {
-                         (yyval.opval) = block_end((ps[(5) - (9)].val.ival), newFOROP(
-                               0, op_lvalue(newUNOP(OP_REFGEN, 0,
-                                                    (ps[(3) - (9)].val.opval)),
-                                            OP_ENTERLOOP), (ps[(6) - (9)].val.opval), (ps[(8) - (9)].val.opval), (ps[(9) - (9)].val.opval)));
-                         parser->copline = (line_t)(ps[(1) - (9)].val.ival);
-                       ;}
-    break;
+                         parser->copline = (line_t)(ps[-9].val.ival);
+                       }
 
-  case 51:
-#line 445 "perly.y"
-    {
-                         (yyval.opval) = block_end((ps[(3) - (7)].val.ival),
-                                 newFOROP(0, (OP*)NULL, (ps[(4) - (7)].val.opval), (ps[(6) - (7)].val.opval), (ps[(7) - (7)].val.opval)));
-                         parser->copline = (line_t)(ps[(1) - (7)].val.ival);
-                       ;}
     break;
 
   case 52:
-#line 451 "perly.y"
+#line 450 "perly.y"
     {
-                         /* a block is a loop that happens once */
-                         (yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
-                                 (OP*)NULL, (ps[(1) - (2)].val.opval), (ps[(2) - (2)].val.opval), 0);
-                       ;}
+                         (yyval.opval) = block_end((ps[-4].val.ival), newFOROP(
+                               0, op_lvalue(newUNOP(OP_REFGEN, 0,
+                                                    (ps[-6].val.opval)),
+                                            OP_ENTERLOOP), (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
+                         parser->copline = (line_t)(ps[-8].val.ival);
+                       }
+
     break;
 
   case 53:
-#line 457 "perly.y"
+#line 458 "perly.y"
     {
-                         package((ps[(3) - (5)].val.opval));
-                         if ((ps[(2) - (5)].val.opval)) {
-                             package_version((ps[(2) - (5)].val.opval));
-                         }
-                       ;}
+                         (yyval.opval) = block_end((ps[-4].val.ival),
+                                 newFOROP(0, NULL, (ps[-3].val.opval), (ps[-1].val.opval), (ps[0].val.opval)));
+                         parser->copline = (line_t)(ps[-6].val.ival);
+                       }
+
     break;
 
   case 54:
 #line 464 "perly.y"
-    {
-                         /* a block is a loop that happens once */
-                         (yyval.opval) = newWHILEOP(0, 1, (LOOP*)(OP*)NULL,
-                                 (OP*)NULL, block_end((ps[(5) - (8)].val.ival), (ps[(7) - (8)].val.opval)), (OP*)NULL, 0);
-                         if (parser->copline > (line_t)(ps[(4) - (8)].val.ival))
-                             parser->copline = (line_t)(ps[(4) - (8)].val.ival);
-                       ;}
+    { parser->in_my = 1; }
+
     break;
 
   case 55:
-#line 472 "perly.y"
-    {
-                         (yyval.opval) = (ps[(1) - (2)].val.opval);
-                       ;}
+#line 466 "perly.y"
+    { parser->in_my = 0; intro_my(); }
+
     break;
 
   case 56:
-#line 476 "perly.y"
+#line 468 "perly.y"
     {
-                         (yyval.opval) = (OP*)NULL;
-                         parser->copline = NOLINE;
-                       ;}
+                         (yyval.opval) = newTRYCATCHOP(0,
+                                 (ps[-8].val.opval), (ps[-3].val.opval), block_end((ps[-4].val.ival), op_scope((ps[0].val.opval))));
+                       }
+
     break;
 
   case 57:
-#line 484 "perly.y"
-    { OP *list;
-                         if ((ps[(2) - (2)].val.opval)) {
-                             OP *term = (ps[(2) - (2)].val.opval);
-                             list = op_append_elem(OP_LIST, (ps[(1) - (2)].val.opval), term);
-                         }
-                         else {
-                             list = (ps[(1) - (2)].val.opval);
-                         }
-                         if (parser->copline == NOLINE)
-                              parser->copline = CopLINE(PL_curcop)-1;
-                         else parser->copline--;
-                         (yyval.opval) = newSTATEOP(0, NULL,
-                                         op_convert_list(OP_FORMLINE, 0, list));
-                       ;}
+#line 473 "perly.y"
+    {
+                         /* a block is a loop that happens once */
+                         (yyval.opval) = newWHILEOP(0, 1, NULL,
+                                 NULL, (ps[-1].val.opval), (ps[0].val.opval), 0);
+                       }
+
     break;
 
   case 58:
-#line 501 "perly.y"
-    { (yyval.opval) = NULL; ;}
+#line 479 "perly.y"
+    {
+                         package((ps[-2].val.opval));
+                         if ((ps[-3].val.opval)) {
+                             package_version((ps[-3].val.opval));
+                         }
+                       }
+
     break;
 
   case 59:
-#line 503 "perly.y"
-    { (yyval.opval) = op_unscope((ps[(2) - (3)].val.opval)); ;}
+#line 486 "perly.y"
+    {
+                         /* a block is a loop that happens once */
+                         (yyval.opval) = newWHILEOP(0, 1, NULL,
+                                 NULL, block_end((ps[-3].val.ival), (ps[-1].val.opval)), NULL, 0);
+                         if (parser->copline > (line_t)(ps[-4].val.ival))
+                             parser->copline = (line_t)(ps[-4].val.ival);
+                       }
+
     break;
 
   case 60:
-#line 508 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 494 "perly.y"
+    {
+                         (yyval.opval) = (ps[-1].val.opval);
+                       }
+
     break;
 
   case 61:
-#line 510 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 498 "perly.y"
+    {
+                         (yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0),
+                               newSVOP(OP_CONST, 0, newSVpvs("Unimplemented")));
+                       }
+
     break;
 
   case 62:
-#line 512 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); ;}
+#line 503 "perly.y"
+    {
+                         (yyval.opval) = NULL;
+                         parser->copline = NOLINE;
+                       }
+
     break;
 
   case 63:
-#line 514 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); ;}
+#line 511 "perly.y"
+    { OP *list;
+                         if ((ps[0].val.opval)) {
+                             OP *term = (ps[0].val.opval);
+                             list = op_append_elem(OP_LIST, (ps[-1].val.opval), term);
+                         }
+                         else {
+                             list = (ps[-1].val.opval);
+                         }
+                         if (parser->copline == NOLINE)
+                              parser->copline = CopLINE(PL_curcop)-1;
+                         else parser->copline--;
+                         (yyval.opval) = newSTATEOP(0, NULL,
+                                         op_convert_list(OP_FORMLINE, 0, list));
+                       }
+
     break;
 
   case 64:
-#line 516 "perly.y"
-    { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[(3) - (3)].val.opval)), (ps[(1) - (3)].val.opval)); ;}
+#line 528 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 65:
-#line 518 "perly.y"
-    { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval)); ;}
-    break;
+#line 530 "perly.y"
+    { (yyval.opval) = op_unscope((ps[-1].val.opval)); }
 
-  case 66:
-#line 520 "perly.y"
-    { (yyval.opval) = newFOROP(0, (OP*)NULL, (ps[(3) - (3)].val.opval), (ps[(1) - (3)].val.opval), (OP*)NULL);
-                         parser->copline = (line_t)(ps[(2) - (3)].val.ival); ;}
     break;
 
   case 67:
-#line 523 "perly.y"
-    { (yyval.opval) = newWHENOP((ps[(3) - (3)].val.opval), op_scope((ps[(1) - (3)].val.opval))); ;}
+#line 538 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 68:
-#line 528 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 540 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 69:
-#line 530 "perly.y"
-    {
-                         ((ps[(2) - (2)].val.opval))->op_flags |= OPf_PARENS;
-                         (yyval.opval) = op_scope((ps[(2) - (2)].val.opval));
-                       ;}
+#line 542 "perly.y"
+    { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[0].val.opval), (ps[-2].val.opval)); }
+
     break;
 
   case 70:
-#line 535 "perly.y"
-    { parser->copline = (line_t)(ps[(1) - (6)].val.ival);
-                           (yyval.opval) = newCONDOP(0,
-                               newSTATEOP(OPf_SPECIAL,NULL,(ps[(3) - (6)].val.opval)),
-                               op_scope((ps[(5) - (6)].val.opval)), (ps[(6) - (6)].val.opval));
-                         PL_hints |= HINT_BLOCK_SCOPE;
-                       ;}
+#line 544 "perly.y"
+    { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[0].val.opval), (ps[-2].val.opval)); }
+
     break;
 
   case 71:
-#line 545 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 546 "perly.y"
+    { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, scalar((ps[0].val.opval)), (ps[-2].val.opval)); }
+
     break;
 
   case 72:
-#line 547 "perly.y"
-    { (yyval.opval) = op_scope((ps[(2) - (2)].val.opval)); ;}
+#line 548 "perly.y"
+    { (yyval.opval) = newLOOPOP(OPf_PARENS, 1, (ps[0].val.opval), (ps[-2].val.opval)); }
+
     break;
 
   case 73:
-#line 552 "perly.y"
-    { (yyval.ival) = (PL_min_intro_pending &&
-                           PL_max_intro_pending >=  PL_min_intro_pending);
-                         intro_my(); ;}
+#line 550 "perly.y"
+    { (yyval.opval) = newFOROP(0, NULL, (ps[0].val.opval), (ps[-2].val.opval), NULL);
+                         parser->copline = (line_t)(ps[-1].val.ival); }
+
     break;
 
   case 74:
+#line 553 "perly.y"
+    { (yyval.opval) = newWHENOP((ps[0].val.opval), op_scope((ps[-2].val.opval))); }
+
+    break;
+
+  case 75:
 #line 558 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 76:
-#line 564 "perly.y"
-    { YYSTYPE tmplval;
-                         (void)scan_num("1", &tmplval);
-                         (yyval.opval) = tmplval.opval; ;}
+#line 560 "perly.y"
+    {
+                         ((ps[0].val.opval))->op_flags |= OPf_PARENS;
+                         (yyval.opval) = op_scope((ps[0].val.opval));
+                       }
+
+    break;
+
+  case 77:
+#line 565 "perly.y"
+    { parser->copline = (line_t)(ps[-5].val.ival);
+                           (yyval.opval) = newCONDOP(0,
+                               newSTATEOP(OPf_SPECIAL,NULL,(ps[-3].val.opval)),
+                               op_scope((ps[-1].val.opval)), (ps[0].val.opval));
+                         PL_hints |= HINT_BLOCK_SCOPE;
+                       }
+
     break;
 
   case 78:
-#line 572 "perly.y"
-    { (yyval.opval) = invert(scalar((ps[(1) - (1)].val.opval))); ;}
+#line 575 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 79:
 #line 577 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
+    { (yyval.opval) = op_scope((ps[0].val.opval)); }
+
     break;
 
   case 80:
-#line 581 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); intro_my(); ;}
+#line 582 "perly.y"
+    { (yyval.ival) = (PL_min_intro_pending &&
+                           PL_max_intro_pending >=  PL_min_intro_pending);
+                         intro_my(); }
+
     break;
 
   case 81:
-#line 584 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
-    break;
+#line 588 "perly.y"
+    { (yyval.opval) = NULL; }
 
-  case 82:
-#line 585 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
     break;
 
   case 83:
-#line 589 "perly.y"
-    { (yyval.ival) = start_subparse(FALSE, 0);
-                           SAVEFREESV(PL_compcv); ;}
-    break;
+#line 594 "perly.y"
+    { YYSTYPE tmplval;
+                         (void)scan_num("1", &tmplval);
+                         (yyval.opval) = tmplval.opval; }
 
-  case 84:
-#line 595 "perly.y"
-    { (yyval.ival) = start_subparse(FALSE, CVf_ANON);
-                           SAVEFREESV(PL_compcv); ;}
     break;
 
   case 85:
-#line 600 "perly.y"
-    { (yyval.ival) = start_subparse(TRUE, 0);
-                           SAVEFREESV(PL_compcv); ;}
-    break;
+#line 602 "perly.y"
+    { (yyval.opval) = invert(scalar((ps[0].val.opval))); }
 
-  case 88:
-#line 611 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
     break;
 
-  case 90:
-#line 617 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
-    break;
+  case 86:
+#line 607 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); intro_my(); }
 
-  case 91:
-#line 619 "perly.y"
-    { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
     break;
 
-  case 92:
-#line 621 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
-    break;
+  case 87:
+#line 611 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); intro_my(); }
 
-  case 93:
-#line 626 "perly.y"
-    { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
     break;
 
-  case 94:
-#line 628 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+  case 88:
+#line 614 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
-  case 95:
-#line 633 "perly.y"
-    {
-                         /* We shouldn't get here otherwise */
-                         assert(FEATURE_SIGNATURES_IS_ENABLED);
+  case 89:
+#line 615 "perly.y"
+    { (yyval.opval) = NULL; }
 
-                         Perl_ck_warner_d(aTHX_
-                               packWARN(WARN_EXPERIMENTAL__SIGNATURES),
-                               "The signatures feature is experimental");
-                         (yyval.opval) = parse_subsignature();
-                       ;}
     break;
 
-  case 96:
-#line 643 "perly.y"
-    {
-                         (yyval.opval) = op_append_list(OP_LINESEQ, (ps[(2) - (3)].val.opval),
-                               newSTATEOP(0, NULL, sawparens(newNULLLIST())));
-                         parser->expect = XATTRBLOCK;
-                       ;}
-    break;
+  case 90:
+#line 619 "perly.y"
+    { (yyval.ival) = start_subparse(FALSE, 0);
+                           SAVEFREESV(PL_compcv); }
 
-  case 98:
-#line 652 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
     break;
 
-  case 99:
-#line 657 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
-    break;
+  case 91:
+#line 625 "perly.y"
+    { (yyval.ival) = start_subparse(FALSE, CVf_ANON);
+                           SAVEFREESV(PL_compcv); }
+
+    break;
+
+  case 92:
+#line 630 "perly.y"
+    { (yyval.ival) = start_subparse(TRUE, 0);
+                           SAVEFREESV(PL_compcv); }
+
+    break;
+
+  case 95:
+#line 641 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 97:
+#line 647 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 98:
+#line 649 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 99:
+#line 651 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 100:
+#line 656 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
 
-  case 100:
-#line 659 "perly.y"
-    { (yyval.opval) = newLOGOP((ps[(2) - (3)].val.ival), 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
     break;
 
   case 101:
-#line 661 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 658 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 102:
+#line 669 "perly.y"
+    { parser->in_my = 0; (yyval.opval) = NULL; }
+
     break;
 
   case 103:
-#line 667 "perly.y"
-    { (yyval.opval) = (ps[(1) - (2)].val.opval); ;}
+#line 671 "perly.y"
+    { parser->in_my = 0; (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 104:
-#line 669 "perly.y"
-    {
-                         OP* term = (ps[(3) - (3)].val.opval);
-                         (yyval.opval) = op_append_elem(OP_LIST, (ps[(1) - (3)].val.opval), term);
-                       ;}
+#line 676 "perly.y"
+    { (yyval.ival) = '@'; }
+
     break;
 
-  case 106:
+  case 105:
 #line 678 "perly.y"
-    { (yyval.opval) = op_convert_list((ps[(1) - (3)].val.ival), OPf_STACKED,
-                               op_prepend_elem(OP_LIST, newGVREF((ps[(1) - (3)].val.ival),(ps[(2) - (3)].val.opval)), (ps[(3) - (3)].val.opval)) );
-                       ;}
+    { (yyval.ival) = '%'; }
+
     break;
 
-  case 107:
+  case 106:
 #line 682 "perly.y"
-    { (yyval.opval) = op_convert_list((ps[(1) - (5)].val.ival), OPf_STACKED,
-                               op_prepend_elem(OP_LIST, newGVREF((ps[(1) - (5)].val.ival),(ps[(3) - (5)].val.opval)), (ps[(4) - (5)].val.opval)) );
-                       ;}
+    {
+                            I32 sigil   = (ps[-2].val.ival);
+                            OP *var     = (ps[-1].val.opval);
+                            OP *defexpr = (ps[0].val.opval);
+
+                            if (parser->sig_slurpy)
+                                yyerror("Multiple slurpy parameters not allowed");
+                            parser->sig_slurpy = (char)sigil;
+
+                            if (defexpr)
+                                yyerror("A slurpy parameter may not have "
+                                        "a default value");
+
+                            (yyval.opval) = var ? newSTATEOP(0, NULL, var) : NULL;
+                        }
+
+    break;
+
+  case 107:
+#line 701 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 108:
-#line 686 "perly.y"
-    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
-                               op_append_elem(OP_LIST,
-                                   op_prepend_elem(OP_LIST, scalar((ps[(1) - (6)].val.opval)), (ps[(5) - (6)].val.opval)),
-                                   newMETHOP(OP_METHOD, 0, (ps[(3) - (6)].val.opval))));
-                       ;}
+#line 703 "perly.y"
+    { (yyval.opval) = newOP(OP_NULL, 0); }
+
     break;
 
   case 109:
-#line 692 "perly.y"
-    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
-                               op_append_elem(OP_LIST, scalar((ps[(1) - (3)].val.opval)),
-                                   newMETHOP(OP_METHOD, 0, (ps[(3) - (3)].val.opval))));
-                       ;}
+#line 705 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 110:
-#line 697 "perly.y"
-    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
-                               op_append_elem(OP_LIST,
-                                   op_prepend_elem(OP_LIST, (ps[(2) - (3)].val.opval), (ps[(3) - (3)].val.opval)),
-                                   newMETHOP(OP_METHOD, 0, (ps[(1) - (3)].val.opval))));
-                       ;}
+#line 711 "perly.y"
+    {
+                            OP *var     = (ps[-1].val.opval);
+                            OP *defexpr = (ps[0].val.opval);
+
+                            if (parser->sig_slurpy)
+                                yyerror("Slurpy parameter not last");
+
+                            parser->sig_elems++;
+
+                            if (defexpr) {
+                                parser->sig_optelems++;
+
+                                if (   defexpr->op_type == OP_NULL
+                                    && !(defexpr->op_flags & OPf_KIDS))
+                                {
+                                    /* handle '$=' special case */
+                                    if (var)
+                                        yyerror("Optional parameter "
+                                                    "lacks default expression");
+                                    op_free(defexpr);
+                                }
+                                else { 
+                                    /* a normal '=default' expression */ 
+                                    OP *defop = (OP*)alloc_LOGOP(OP_ARGDEFELEM,
+                                                        defexpr,
+                                                        LINKLIST(defexpr));
+                                    /* re-purpose op_targ to hold @_ index */
+                                    defop->op_targ =
+                                        (PADOFFSET)(parser->sig_elems - 1);
+
+                                    if (var) {
+                                        var->op_flags |= OPf_STACKED;
+                                        (void)op_sibling_splice(var,
+                                                        NULL, 0, defop);
+                                        scalar(defop);
+                                    }
+                                    else
+                                        var = newUNOP(OP_NULL, 0, defop);
+
+                                    LINKLIST(var);
+                                    /* NB: normally the first child of a
+                                     * logop is executed before the logop,
+                                     * and it pushes a boolean result
+                                     * ready for the logop. For ARGDEFELEM,
+                                     * the op itself does the boolean
+                                     * calculation, so set the first op to
+                                     * it instead.
+                                     */
+                                    var->op_next = defop;
+                                    defexpr->op_next = var;
+                                }
+                            }
+                            else {
+                                if (parser->sig_optelems)
+                                    yyerror("Mandatory parameter "
+                                            "follows optional parameter");
+                            }
+
+                            (yyval.opval) = var ? newSTATEOP(0, NULL, var) : NULL;
+                        }
+
     break;
 
   case 111:
-#line 703 "perly.y"
-    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
-                               op_append_elem(OP_LIST,
-                                   op_prepend_elem(OP_LIST, (ps[(2) - (5)].val.opval), (ps[(4) - (5)].val.opval)),
-                                   newMETHOP(OP_METHOD, 0, (ps[(1) - (5)].val.opval))));
-                       ;}
+#line 776 "perly.y"
+    { parser->in_my = KEY_sigvar; (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 112:
-#line 709 "perly.y"
-    { (yyval.opval) = op_convert_list((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); ;}
+#line 778 "perly.y"
+    { parser->in_my = KEY_sigvar; (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 113:
-#line 711 "perly.y"
-    { (yyval.opval) = op_convert_list((ps[(1) - (4)].val.ival), 0, (ps[(3) - (4)].val.opval)); ;}
+#line 784 "perly.y"
+    { (yyval.opval) = (ps[-1].val.opval); }
+
     break;
 
   case 114:
-#line 713 "perly.y"
-    { SvREFCNT_inc_simple_void(PL_compcv);
-                         (yyval.opval) = newANONATTRSUB((ps[(2) - (3)].val.ival), 0, (OP*)NULL, (ps[(3) - (3)].val.opval)); ;}
+#line 786 "perly.y"
+    {
+                         (yyval.opval) = op_append_list(OP_LINESEQ, (ps[-2].val.opval), (ps[0].val.opval));
+                       }
+
     break;
 
   case 115:
-#line 716 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                                op_append_elem(OP_LIST,
-                                  op_prepend_elem(OP_LIST, (ps[(4) - (5)].val.opval), (ps[(5) - (5)].val.opval)), (ps[(1) - (5)].val.opval)));
-                       ;}
+#line 790 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 116:
+#line 795 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 117:
+#line 797 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 118:
-#line 731 "perly.y"
-    { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[(1) - (5)].val.opval), scalar((ps[(3) - (5)].val.opval))); ;}
+#line 801 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 119:
-#line 733 "perly.y"
-    { (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[(1) - (4)].val.opval)), scalar((ps[(3) - (4)].val.opval)));
-                       ;}
+#line 803 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 120:
-#line 736 "perly.y"
-    { (yyval.opval) = newBINOP(OP_AELEM, 0,
-                                       ref(newAVREF((ps[(1) - (5)].val.opval)),OP_RV2AV),
-                                       scalar((ps[(4) - (5)].val.opval)));
-                       ;}
+#line 807 "perly.y"
+    { (yyval.opval) = (ps[-1].val.opval); }
+
     break;
 
   case 121:
-#line 741 "perly.y"
-    { (yyval.opval) = newBINOP(OP_AELEM, 0,
-                                       ref(newAVREF((ps[(1) - (4)].val.opval)),OP_RV2AV),
-                                       scalar((ps[(3) - (4)].val.opval)));
-                       ;}
+#line 810 "perly.y"
+    {
+                            ENTER;
+                            SAVEIV(parser->sig_elems);
+                            SAVEIV(parser->sig_optelems);
+                            SAVEI8(parser->sig_slurpy);
+                            parser->sig_elems    = 0;
+                            parser->sig_optelems = 0;
+                            parser->sig_slurpy   = 0;
+                            parser->in_my        = KEY_sigvar;
+                        }
+
     break;
 
   case 122:
-#line 746 "perly.y"
-    { (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((ps[(1) - (5)].val.opval)), jmaybe((ps[(3) - (5)].val.opval)));
-                       ;}
+#line 821 "perly.y"
+    {
+                            OP            *sigops = (ps[0].val.opval);
+                            struct op_argcheck_aux *aux;
+                            OP            *check;
+
+                           if (!FEATURE_SIGNATURES_IS_ENABLED)
+                               Perl_croak(aTHX_ "Experimental "
+                                    "subroutine signatures not enabled");
+
+                            /* We shouldn't get here otherwise */
+                            Perl_ck_warner_d(aTHX_
+                                packWARN(WARN_EXPERIMENTAL__SIGNATURES),
+                                "The signatures feature is experimental");
+
+                            aux = (struct op_argcheck_aux*)
+                                    PerlMemShared_malloc(
+                                        sizeof(struct op_argcheck_aux));
+                            aux->params     = parser->sig_elems;
+                            aux->opt_params = parser->sig_optelems;
+                            aux->slurpy     = parser->sig_slurpy;
+                            check = newUNOP_AUX(OP_ARGCHECK, 0, NULL,
+                                            (UNOP_AUX_item *)aux);
+                            sigops = op_prepend_elem(OP_LINESEQ, check, sigops);
+                            sigops = op_prepend_elem(OP_LINESEQ,
+                                                newSTATEOP(0, NULL, NULL),
+                                                sigops);
+                            /* a nextstate at the end handles context
+                             * correctly for an empty sub body */
+                            sigops = op_append_elem(OP_LINESEQ,
+                                                sigops,
+                                                newSTATEOP(0, NULL, NULL));
+                            /* wrap the list of arg ops in a NULL aux op.
+                              This serves two purposes. First, it makes
+                              the arg list a separate subtree from the
+                              body of the sub, and secondly the null op
+                              may in future be upgraded to an OP_SIGNATURE
+                              when implemented. For now leave it as
+                              ex-argcheck */
+                            (yyval.opval) = newUNOP_AUX(OP_ARGCHECK, 0, sigops, NULL);
+                            op_null((yyval.opval));
+
+                            parser->in_my = 0;
+                            /* tell the toker that attrributes can follow
+                             * this sig, but only so that the toker
+                             * can skip through any (illegal) trailing
+                             * attribute text then give a useful error
+                             * message about "attributes before sig",
+                             * rather than falling over ina mess at
+                             * unrecognised syntax.
+                             */
+                            parser->expect = XATTRBLOCK;
+                            parser->sig_seen = TRUE;
+                            LEAVE;
+                       }
+
     break;
 
   case 123:
-#line 749 "perly.y"
-    { (yyval.opval) = newBINOP(OP_HELEM, 0,
-                                       ref(newHVREF((ps[(1) - (6)].val.opval)),OP_RV2HV),
-                                       jmaybe((ps[(4) - (6)].val.opval))); ;}
+#line 878 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 124:
-#line 753 "perly.y"
-    { (yyval.opval) = newBINOP(OP_HELEM, 0,
-                                       ref(newHVREF((ps[(1) - (5)].val.opval)),OP_RV2HV),
-                                       jmaybe((ps[(3) - (5)].val.opval))); ;}
+#line 879 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 125:
-#line 757 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                                  newCVREF(0, scalar((ps[(1) - (4)].val.opval)))); ;}
+#line 885 "perly.y"
+    {
+                         if (parser->copline > (line_t)(ps[-2].val.ival))
+                             parser->copline = (line_t)(ps[-2].val.ival);
+                         (yyval.opval) = block_end((ps[-3].val.ival), (ps[-1].val.opval));
+                       }
+
     break;
 
   case 126:
-#line 760 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                                  op_append_elem(OP_LIST, (ps[(4) - (5)].val.opval),
-                                      newCVREF(0, scalar((ps[(1) - (5)].val.opval))))); ;}
+#line 895 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 127:
-#line 765 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                                  op_append_elem(OP_LIST, (ps[(3) - (4)].val.opval),
-                                              newCVREF(0, scalar((ps[(1) - (4)].val.opval))))); ;}
+#line 896 "perly.y"
+    { (yyval.opval) = NULL; }
+
     break;
 
   case 128:
-#line 769 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                                  newCVREF(0, scalar((ps[(1) - (3)].val.opval)))); ;}
+#line 900 "perly.y"
+    {
+                         if (parser->copline > (line_t)(ps[-2].val.ival))
+                             parser->copline = (line_t)(ps[-2].val.ival);
+                         (yyval.opval) = block_end((ps[-4].val.ival),
+                               op_append_list(OP_LINESEQ, (ps[-3].val.opval), (ps[-1].val.opval)));
+                       }
+
     break;
 
   case 129:
-#line 772 "perly.y"
-    { (yyval.opval) = newSLICEOP(0, (ps[(5) - (6)].val.opval), (ps[(2) - (6)].val.opval)); ;}
+#line 911 "perly.y"
+    { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 130:
-#line 774 "perly.y"
-    { (yyval.opval) = newSLICEOP(0, (ps[(3) - (4)].val.opval), (ps[(1) - (4)].val.opval)); ;}
-    break;
+#line 913 "perly.y"
+    { (yyval.opval) = newLOGOP((ps[-1].val.ival), 0, (ps[-2].val.opval), (ps[0].val.opval)); }
 
-  case 131:
-#line 776 "perly.y"
-    { (yyval.opval) = newSLICEOP(0, (ps[(4) - (5)].val.opval), (OP*)NULL); ;}
     break;
 
   case 132:
-#line 781 "perly.y"
-    { (yyval.opval) = newASSIGNOP(OPf_STACKED, (ps[(1) - (3)].val.opval), (ps[(2) - (3)].val.ival), (ps[(3) - (3)].val.opval)); ;}
+#line 919 "perly.y"
+    { (yyval.opval) = (ps[-1].val.opval); }
+
     break;
 
   case 133:
-#line 783 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
-    break;
+#line 921 "perly.y"
+    {
+                         OP* term = (ps[0].val.opval);
+                         (yyval.opval) = op_append_elem(OP_LIST, (ps[-2].val.opval), term);
+                       }
 
-  case 134:
-#line 785 "perly.y"
-    {   if ((ps[(2) - (3)].val.ival) != OP_REPEAT)
-                               scalar((ps[(1) - (3)].val.opval));
-                           (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, (ps[(1) - (3)].val.opval), scalar((ps[(3) - (3)].val.opval)));
-                       ;}
     break;
 
   case 135:
-#line 790 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 930 "perly.y"
+    { (yyval.opval) = op_convert_list((ps[-2].val.ival), OPf_STACKED,
+                               op_prepend_elem(OP_LIST, newGVREF((ps[-2].val.ival),(ps[-1].val.opval)), (ps[0].val.opval)) );
+                       }
+
     break;
 
   case 136:
-#line 792 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 934 "perly.y"
+    { (yyval.opval) = op_convert_list((ps[-4].val.ival), OPf_STACKED,
+                               op_prepend_elem(OP_LIST, newGVREF((ps[-4].val.ival),(ps[-2].val.opval)), (ps[-1].val.opval)) );
+                       }
+
     break;
 
   case 137:
-#line 794 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 938 "perly.y"
+    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
+                               op_append_elem(OP_LIST,
+                                   op_prepend_elem(OP_LIST, scalar((ps[-5].val.opval)), (ps[-1].val.opval)),
+                                   newMETHOP(OP_METHOD, 0, (ps[-3].val.opval))));
+                       }
+
     break;
 
   case 138:
-#line 796 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 944 "perly.y"
+    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
+                               op_append_elem(OP_LIST, scalar((ps[-2].val.opval)),
+                                   newMETHOP(OP_METHOD, 0, (ps[0].val.opval))));
+                       }
+
     break;
 
   case 139:
-#line 798 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 949 "perly.y"
+    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
+                               op_append_elem(OP_LIST,
+                                   op_prepend_elem(OP_LIST, (ps[-1].val.opval), (ps[0].val.opval)),
+                                   newMETHOP(OP_METHOD, 0, (ps[-2].val.opval))));
+                       }
+
     break;
 
   case 140:
-#line 800 "perly.y"
-    { (yyval.opval) = newBINOP((ps[(2) - (3)].val.ival), 0, scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 955 "perly.y"
+    { (yyval.opval) = op_convert_list(OP_ENTERSUB, OPf_STACKED,
+                               op_append_elem(OP_LIST,
+                                   op_prepend_elem(OP_LIST, (ps[-3].val.opval), (ps[-1].val.opval)),
+                                   newMETHOP(OP_METHOD, 0, (ps[-4].val.opval))));
+                       }
+
     break;
 
   case 141:
-#line 802 "perly.y"
-    { (yyval.opval) = newRANGE((ps[(2) - (3)].val.ival), scalar((ps[(1) - (3)].val.opval)), scalar((ps[(3) - (3)].val.opval))); ;}
+#line 961 "perly.y"
+    { (yyval.opval) = op_convert_list((ps[-1].val.ival), 0, (ps[0].val.opval)); }
+
     break;
 
   case 142:
-#line 804 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 963 "perly.y"
+    { (yyval.opval) = op_convert_list((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
+
     break;
 
   case 143:
-#line 806 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
+#line 965 "perly.y"
+    { (yyval.opval) = op_convert_list((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
+
     break;
 
   case 144:
-#line 808 "perly.y"
-    { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
-    break;
+#line 967 "perly.y"
+    { SvREFCNT_inc_simple_void(PL_compcv);
+                         (yyval.opval) = newANONATTRSUB((ps[-1].val.ival), 0, NULL, (ps[0].val.opval)); }
 
-  case 145:
-#line 810 "perly.y"
-    { (yyval.opval) = bind_match((ps[(2) - (3)].val.ival), (ps[(1) - (3)].val.opval), (ps[(3) - (3)].val.opval)); ;}
     break;
 
-  case 146:
-#line 815 "perly.y"
-    { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[(2) - (2)].val.opval))); ;}
-    break;
+  case 145:
+#line 970 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                                op_append_elem(OP_LIST,
+                                  op_prepend_elem(OP_LIST, (ps[-1].val.opval), (ps[0].val.opval)), (ps[-4].val.opval)));
+                       }
 
-  case 147:
-#line 817 "perly.y"
-    { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
     break;
 
   case 148:
-#line 820 "perly.y"
-    { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 985 "perly.y"
+    { (yyval.opval) = newBINOP(OP_GELEM, 0, (ps[-4].val.opval), scalar((ps[-2].val.opval))); }
+
     break;
 
   case 149:
-#line 822 "perly.y"
-    { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 987 "perly.y"
+    { (yyval.opval) = newBINOP(OP_AELEM, 0, oopsAV((ps[-3].val.opval)), scalar((ps[-1].val.opval)));
+                       }
+
     break;
 
   case 150:
-#line 824 "perly.y"
-    { (yyval.opval) = newUNOP(OP_POSTINC, 0,
-                                       op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTINC)); ;}
+#line 990 "perly.y"
+    { (yyval.opval) = newBINOP(OP_AELEM, 0,
+                                       ref(newAVREF((ps[-4].val.opval)),OP_RV2AV),
+                                       scalar((ps[-1].val.opval)));
+                       }
+
     break;
 
   case 151:
-#line 827 "perly.y"
-    { (yyval.opval) = newUNOP(OP_POSTDEC, 0,
-                                       op_lvalue(scalar((ps[(1) - (2)].val.opval)), OP_POSTDEC));;}
+#line 995 "perly.y"
+    { (yyval.opval) = newBINOP(OP_AELEM, 0,
+                                       ref(newAVREF((ps[-3].val.opval)),OP_RV2AV),
+                                       scalar((ps[-1].val.opval)));
+                       }
+
     break;
 
   case 152:
-#line 830 "perly.y"
-    { (yyval.opval) = op_convert_list(OP_JOIN, 0,
-                                      op_append_elem(
-                                       OP_LIST,
-                                       newSVREF(scalar(
-                                           newSVOP(OP_CONST,0,
-                                                   newSVpvs("\""))
-                                       )),
-                                       (ps[(1) - (2)].val.opval)
-                                      ));
-                       ;}
+#line 1000 "perly.y"
+    { (yyval.opval) = newBINOP(OP_HELEM, 0, oopsHV((ps[-4].val.opval)), jmaybe((ps[-2].val.opval)));
+                       }
+
     break;
 
   case 153:
-#line 841 "perly.y"
-    { (yyval.opval) = newUNOP(OP_PREINC, 0,
-                                       op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREINC)); ;}
+#line 1003 "perly.y"
+    { (yyval.opval) = newBINOP(OP_HELEM, 0,
+                                       ref(newHVREF((ps[-5].val.opval)),OP_RV2HV),
+                                       jmaybe((ps[-2].val.opval))); }
+
     break;
 
   case 154:
-#line 844 "perly.y"
-    { (yyval.opval) = newUNOP(OP_PREDEC, 0,
-                                       op_lvalue(scalar((ps[(2) - (2)].val.opval)), OP_PREDEC)); ;}
+#line 1007 "perly.y"
+    { (yyval.opval) = newBINOP(OP_HELEM, 0,
+                                       ref(newHVREF((ps[-4].val.opval)),OP_RV2HV),
+                                       jmaybe((ps[-2].val.opval))); }
+
     break;
 
   case 155:
-#line 851 "perly.y"
-    { (yyval.opval) = newANONLIST((ps[(2) - (3)].val.opval)); ;}
+#line 1011 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                                  newCVREF(0, scalar((ps[-3].val.opval))));
+                         if (parser->expect == XBLOCK)
+                             parser->expect = XOPERATOR;
+                       }
+
     break;
 
   case 156:
-#line 853 "perly.y"
-    { (yyval.opval) = newANONLIST((OP*)NULL);;}
+#line 1017 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                                  op_append_elem(OP_LIST, (ps[-1].val.opval),
+                                      newCVREF(0, scalar((ps[-4].val.opval)))));
+                         if (parser->expect == XBLOCK)
+                             parser->expect = XOPERATOR;
+                       }
+
     break;
 
   case 157:
-#line 855 "perly.y"
-    { (yyval.opval) = newANONHASH((ps[(2) - (4)].val.opval)); ;}
+#line 1025 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                                  op_append_elem(OP_LIST, (ps[-1].val.opval),
+                                              newCVREF(0, scalar((ps[-3].val.opval)))));
+                         if (parser->expect == XBLOCK)
+                             parser->expect = XOPERATOR;
+                       }
+
     break;
 
   case 158:
-#line 857 "perly.y"
-    { (yyval.opval) = newANONHASH((OP*)NULL); ;}
+#line 1032 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                                  newCVREF(0, scalar((ps[-2].val.opval))));
+                         if (parser->expect == XBLOCK)
+                             parser->expect = XOPERATOR;
+                       }
+
     break;
 
   case 159:
-#line 859 "perly.y"
-    { SvREFCNT_inc_simple_void(PL_compcv);
-                         (yyval.opval) = newANONATTRSUB((ps[(2) - (5)].val.ival), (ps[(3) - (5)].val.opval), (ps[(4) - (5)].val.opval), (ps[(5) - (5)].val.opval)); ;}
+#line 1038 "perly.y"
+    { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), (ps[-4].val.opval)); }
+
     break;
 
   case 160:
-#line 862 "perly.y"
-    {
-                         OP *body;
-                         if (parser->copline > (line_t)(ps[(6) - (8)].val.ival))
-                             parser->copline = (line_t)(ps[(6) - (8)].val.ival);
-                         body = block_end((ps[(3) - (8)].val.ival),
-                               op_append_list(OP_LINESEQ, (ps[(4) - (8)].val.opval), (ps[(7) - (8)].val.opval)));
-                         SvREFCNT_inc_simple_void(PL_compcv);
-                         (yyval.opval) = newANONATTRSUB((ps[(2) - (8)].val.ival), NULL, (ps[(5) - (8)].val.opval), body);
-                       ;}
+#line 1040 "perly.y"
+    { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), (ps[-3].val.opval)); }
+
     break;
 
   case 161:
-#line 876 "perly.y"
-    { (yyval.opval) = dofile((ps[(2) - (2)].val.opval), (ps[(1) - (2)].val.ival));;}
+#line 1042 "perly.y"
+    { (yyval.opval) = newSLICEOP(0, (ps[-1].val.opval), NULL); }
+
     break;
 
   case 162:
-#line 878 "perly.y"
-    { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[(2) - (2)].val.opval)));;}
+#line 1047 "perly.y"
+    { (yyval.opval) = newASSIGNOP(OPf_STACKED, (ps[-2].val.opval), (ps[-1].val.ival), (ps[0].val.opval)); }
+
+    break;
+
+  case 163:
+#line 1049 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
+    break;
+
+  case 164:
+#line 1051 "perly.y"
+    {   if ((ps[-1].val.ival) != OP_REPEAT)
+                               scalar((ps[-2].val.opval));
+                           (yyval.opval) = newBINOP((ps[-1].val.ival), 0, (ps[-2].val.opval), scalar((ps[0].val.opval)));
+                       }
+
+    break;
+
+  case 165:
+#line 1056 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
+    break;
+
+  case 166:
+#line 1058 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
     break;
 
   case 167:
-#line 886 "perly.y"
-    { (yyval.opval) = newCONDOP(0, (ps[(1) - (5)].val.opval), (ps[(3) - (5)].val.opval), (ps[(5) - (5)].val.opval)); ;}
+#line 1060 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 168:
-#line 888 "perly.y"
-    { (yyval.opval) = newUNOP(OP_REFGEN, 0, (ps[(2) - (2)].val.opval)); ;}
+#line 1062 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 169:
-#line 890 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1064 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
     break;
 
   case 170:
-#line 892 "perly.y"
-    { (yyval.opval) = localize((ps[(2) - (2)].val.opval),(ps[(1) - (2)].val.ival)); ;}
+#line 1066 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
     break;
 
   case 171:
-#line 894 "perly.y"
-    { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); ;}
+#line 1068 "perly.y"
+    { (yyval.opval) = newRANGE((ps[-1].val.ival), scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
     break;
 
   case 172:
-#line 896 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1070 "perly.y"
+    { (yyval.opval) = newLOGOP(OP_AND, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 173:
-#line 898 "perly.y"
-    { (yyval.opval) = sawparens(newNULLLIST()); ;}
+#line 1072 "perly.y"
+    { (yyval.opval) = newLOGOP(OP_OR, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 174:
-#line 900 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1074 "perly.y"
+    { (yyval.opval) = newLOGOP(OP_DOR, 0, (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 175:
-#line 902 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1076 "perly.y"
+    { (yyval.opval) = bind_match((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 176:
-#line 904 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1080 "perly.y"
+    { (yyval.opval) = cmpchain_finish((ps[0].val.opval)); }
+
     break;
 
   case 177:
-#line 906 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1082 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
     break;
 
   case 178:
-#line 908 "perly.y"
-    { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[(1) - (1)].val.opval), OP_AV2ARYLEN));;}
+#line 1084 "perly.y"
+    { yyerror("syntax error"); YYERROR; }
+
     break;
 
   case 179:
-#line 910 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1086 "perly.y"
+    { yyerror("syntax error"); YYERROR; }
+
     break;
 
   case 180:
-#line 912 "perly.y"
-    { (yyval.opval) = op_prepend_elem(OP_ASLICE,
-                               newOP(OP_PUSHMARK, 0),
-                                   newLISTOP(OP_ASLICE, 0,
-                                       list((ps[(3) - (4)].val.opval)),
-                                       ref((ps[(1) - (4)].val.opval), OP_ASLICE)));
-                         if ((yyval.opval) && (ps[(1) - (4)].val.opval))
-                             (yyval.opval)->op_private |=
-                                 (ps[(1) - (4)].val.opval)->op_private & OPpSLICEWARNING;
-                       ;}
+#line 1090 "perly.y"
+    { (yyval.opval) = cmpchain_start((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 181:
-#line 922 "perly.y"
-    { (yyval.opval) = op_prepend_elem(OP_KVASLICE,
-                               newOP(OP_PUSHMARK, 0),
-                                   newLISTOP(OP_KVASLICE, 0,
-                                       list((ps[(3) - (4)].val.opval)),
-                                       ref(oopsAV((ps[(1) - (4)].val.opval)), OP_KVASLICE)));
-                         if ((yyval.opval) && (ps[(1) - (4)].val.opval))
-                             (yyval.opval)->op_private |=
-                                 (ps[(1) - (4)].val.opval)->op_private & OPpSLICEWARNING;
-                       ;}
+#line 1092 "perly.y"
+    { (yyval.opval) = cmpchain_extend((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 182:
-#line 932 "perly.y"
-    { (yyval.opval) = op_prepend_elem(OP_HSLICE,
-                               newOP(OP_PUSHMARK, 0),
-                                   newLISTOP(OP_HSLICE, 0,
-                                       list((ps[(3) - (5)].val.opval)),
-                                       ref(oopsHV((ps[(1) - (5)].val.opval)), OP_HSLICE)));
-                         if ((yyval.opval) && (ps[(1) - (5)].val.opval))
-                             (yyval.opval)->op_private |=
-                                 (ps[(1) - (5)].val.opval)->op_private & OPpSLICEWARNING;
-                       ;}
+#line 1096 "perly.y"
+    { (yyval.opval) = cmpchain_finish((ps[0].val.opval)); }
+
     break;
 
   case 183:
-#line 942 "perly.y"
-    { (yyval.opval) = op_prepend_elem(OP_KVHSLICE,
-                               newOP(OP_PUSHMARK, 0),
-                                   newLISTOP(OP_KVHSLICE, 0,
-                                       list((ps[(3) - (5)].val.opval)),
-                                       ref((ps[(1) - (5)].val.opval), OP_KVHSLICE)));
-                         if ((yyval.opval) && (ps[(1) - (5)].val.opval))
-                             (yyval.opval)->op_private |=
-                                 (ps[(1) - (5)].val.opval)->op_private & OPpSLICEWARNING;
-                       ;}
+#line 1098 "perly.y"
+    { (yyval.opval) = newBINOP((ps[-1].val.ival), 0, scalar((ps[-2].val.opval)), scalar((ps[0].val.opval))); }
+
     break;
 
   case 184:
-#line 952 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1100 "perly.y"
+    { yyerror("syntax error"); YYERROR; }
+
     break;
 
   case 185:
-#line 954 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[(1) - (1)].val.opval))); ;}
+#line 1102 "perly.y"
+    { yyerror("syntax error"); YYERROR; }
+
     break;
 
   case 186:
-#line 956 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (3)].val.opval)));
-                       ;}
+#line 1106 "perly.y"
+    { (yyval.opval) = cmpchain_start((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 187:
-#line 959 "perly.y"
-    {
-                         (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                               op_append_elem(OP_LIST, (ps[(3) - (4)].val.opval), scalar((ps[(1) - (4)].val.opval))));
-                       ;}
+#line 1108 "perly.y"
+    { (yyval.opval) = cmpchain_extend((ps[-1].val.ival), (ps[-2].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 188:
-#line 964 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                           op_append_elem(OP_LIST, (ps[(3) - (3)].val.opval), scalar((ps[(2) - (3)].val.opval))));
-                       ;}
+#line 1113 "perly.y"
+    { (yyval.opval) = newUNOP(OP_NEGATE, 0, scalar((ps[0].val.opval))); }
+
     break;
 
   case 189:
-#line 968 "perly.y"
-    { (yyval.opval) = newSVREF((ps[(1) - (4)].val.opval)); ;}
+#line 1115 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 190:
-#line 970 "perly.y"
-    { (yyval.opval) = newAVREF((ps[(1) - (4)].val.opval)); ;}
+#line 1118 "perly.y"
+    { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
+
     break;
 
   case 191:
-#line 972 "perly.y"
-    { (yyval.opval) = newHVREF((ps[(1) - (4)].val.opval)); ;}
+#line 1120 "perly.y"
+    { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, scalar((ps[0].val.opval))); }
+
     break;
 
   case 192:
-#line 974 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, 0,
-                                      scalar(newCVREF((ps[(3) - (4)].val.ival),(ps[(1) - (4)].val.opval)))); ;}
+#line 1122 "perly.y"
+    { (yyval.opval) = newUNOP(OP_POSTINC, 0,
+                                       op_lvalue(scalar((ps[-1].val.opval)), OP_POSTINC)); }
+
     break;
 
   case 193:
-#line 977 "perly.y"
-    { (yyval.opval) = newGVREF(0,(ps[(1) - (4)].val.opval)); ;}
+#line 1125 "perly.y"
+    { (yyval.opval) = newUNOP(OP_POSTDEC, 0,
+                                       op_lvalue(scalar((ps[-1].val.opval)), OP_POSTDEC));}
+
     break;
 
   case 194:
-#line 979 "perly.y"
-    { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), OPf_SPECIAL);
-                           PL_hints |= HINT_BLOCK_SCOPE; ;}
+#line 1128 "perly.y"
+    { (yyval.opval) = op_convert_list(OP_JOIN, 0,
+                                      op_append_elem(
+                                       OP_LIST,
+                                       newSVREF(scalar(
+                                           newSVOP(OP_CONST,0,
+                                                   newSVpvs("\""))
+                                       )),
+                                       (ps[-1].val.opval)
+                                      ));
+                       }
+
     break;
 
   case 195:
-#line 982 "perly.y"
-    { (yyval.opval) = newLOOPEX((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval)); ;}
+#line 1139 "perly.y"
+    { (yyval.opval) = newUNOP(OP_PREINC, 0,
+                                       op_lvalue(scalar((ps[0].val.opval)), OP_PREINC)); }
+
     break;
 
   case 196:
-#line 984 "perly.y"
-    { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[(2) - (2)].val.opval))); ;}
+#line 1142 "perly.y"
+    { (yyval.opval) = newUNOP(OP_PREDEC, 0,
+                                       op_lvalue(scalar((ps[0].val.opval)), OP_PREDEC)); }
+
     break;
 
   case 197:
-#line 986 "perly.y"
-    { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), 0); ;}
+#line 1149 "perly.y"
+    { (yyval.opval) = newANONLIST((ps[-1].val.opval)); }
+
     break;
 
   case 198:
-#line 988 "perly.y"
-    { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); ;}
+#line 1151 "perly.y"
+    { (yyval.opval) = newANONLIST(NULL);}
+
     break;
 
   case 199:
-#line 990 "perly.y"
-    { (yyval.opval) = newUNOP((ps[(1) - (2)].val.ival), 0, (ps[(2) - (2)].val.opval)); ;}
+#line 1153 "perly.y"
+    { (yyval.opval) = newANONHASH((ps[-2].val.opval)); }
+
     break;
 
   case 200:
-#line 992 "perly.y"
-    { (yyval.opval) = newOP(OP_REQUIRE, (ps[(1) - (1)].val.ival) ? OPf_SPECIAL : 0); ;}
+#line 1155 "perly.y"
+    { (yyval.opval) = newANONHASH(NULL); }
+
     break;
 
   case 201:
-#line 994 "perly.y"
-    { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[(1) - (2)].val.ival) ? OPf_SPECIAL : 0, (ps[(2) - (2)].val.opval)); ;}
+#line 1157 "perly.y"
+    { SvREFCNT_inc_simple_void(PL_compcv);
+                         (yyval.opval) = newANONATTRSUB((ps[-3].val.ival), (ps[-2].val.opval), (ps[-1].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 202:
-#line 996 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;}
+#line 1160 "perly.y"
+    { SvREFCNT_inc_simple_void(PL_compcv);
+                         (yyval.opval) = newANONATTRSUB((ps[-2].val.ival), NULL, (ps[-1].val.opval), (ps[0].val.opval)); }
+
     break;
 
   case 203:
-#line 998 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
-                           op_append_elem(OP_LIST, (ps[(2) - (2)].val.opval), scalar((ps[(1) - (2)].val.opval)))); ;}
+#line 1166 "perly.y"
+    { (yyval.opval) = dofile((ps[0].val.opval), (ps[-1].val.ival));}
+
     break;
 
   case 204:
-#line 1001 "perly.y"
-    { (yyval.opval) = newOP((ps[(1) - (1)].val.ival), 0); ;}
-    break;
+#line 1168 "perly.y"
+    { (yyval.opval) = newUNOP(OP_NULL, OPf_SPECIAL, op_scope((ps[0].val.opval)));}
 
-  case 205:
-#line 1003 "perly.y"
-    { (yyval.opval) = newOP((ps[(1) - (3)].val.ival), 0);;}
     break;
 
-  case 206:
-#line 1005 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
-    break;
+  case 209:
+#line 1176 "perly.y"
+    { (yyval.opval) = newCONDOP(0, (ps[-4].val.opval), (ps[-2].val.opval), (ps[0].val.opval)); }
 
-  case 207:
-#line 1007 "perly.y"
-    { (yyval.opval) = (ps[(1) - (3)].val.opval); ;}
     break;
 
-  case 208:
-#line 1009 "perly.y"
-    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[(1) - (1)].val.opval))); ;}
+  case 210:
+#line 1178 "perly.y"
+    { (yyval.opval) = newUNOP(OP_REFGEN, 0, (ps[0].val.opval)); }
+
     break;
 
-  case 209:
-#line 1011 "perly.y"
-    { (yyval.opval) = ((ps[(1) - (3)].val.ival) == OP_NOT)
-                          ? newUNOP((ps[(1) - (3)].val.ival), 0, newSVOP(OP_CONST, 0, newSViv(0)))
-                          : newOP((ps[(1) - (3)].val.ival), OPf_SPECIAL); ;}
+  case 211:
+#line 1180 "perly.y"
+    { (yyval.opval) = newUNOP(OP_REFGEN, 0, localize((ps[0].val.opval),1)); }
+
     break;
 
-  case 210:
-#line 1015 "perly.y"
-    { (yyval.opval) = newUNOP((ps[(1) - (4)].val.ival), 0, (ps[(3) - (4)].val.opval)); ;}
+  case 212:
+#line 1182 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
-  case 211:
-#line 1017 "perly.y"
-    {
-                           if (   (ps[(1) - (1)].val.opval)->op_type != OP_TRANS
-                               && (ps[(1) - (1)].val.opval)->op_type != OP_TRANSR
-                               && (((PMOP*)(ps[(1) - (1)].val.opval))->op_pmflags & PMf_HAS_CV))
-                           {
-                               (yyval.ival) = start_subparse(FALSE, CVf_ANON);
-                               SAVEFREESV(PL_compcv);
-                           } else
-                               (yyval.ival) = 0;
-                       ;}
+  case 213:
+#line 1184 "perly.y"
+    { (yyval.opval) = localize((ps[0].val.opval),0); }
+
     break;
 
-  case 212:
-#line 1028 "perly.y"
-    { (yyval.opval) = pmruntime((ps[(1) - (6)].val.opval), (ps[(4) - (6)].val.opval), (ps[(5) - (6)].val.opval), 1, (ps[(2) - (6)].val.ival)); ;}
+  case 214:
+#line 1186 "perly.y"
+    { (yyval.opval) = sawparens((ps[-1].val.opval)); }
+
     break;
 
   case 215:
-#line 1032 "perly.y"
-    {
-                         (yyval.opval) = newLISTOP(OP_DIE, 0, newOP(OP_PUSHMARK, 0),
-                               newSVOP(OP_CONST, 0, newSVpvs("Unimplemented")));
-                       ;}
+#line 1188 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 216:
+#line 1190 "perly.y"
+    { (yyval.opval) = sawparens(newNULLLIST()); }
+
     break;
 
   case 217:
-#line 1041 "perly.y"
-    { (yyval.opval) = my_attrs((ps[(2) - (3)].val.opval),(ps[(3) - (3)].val.opval)); ;}
+#line 1192 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 218:
-#line 1043 "perly.y"
-    { (yyval.opval) = localize((ps[(2) - (2)].val.opval),(ps[(1) - (2)].val.ival)); ;}
+#line 1194 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 219:
-#line 1048 "perly.y"
-    { (yyval.opval) = sawparens((ps[(2) - (3)].val.opval)); ;}
+#line 1196 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 220:
-#line 1050 "perly.y"
-    { (yyval.opval) = sawparens(newNULLLIST()); ;}
+#line 1198 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 221:
-#line 1053 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1200 "perly.y"
+    { (yyval.opval) = newUNOP(OP_AV2ARYLEN, 0, ref((ps[0].val.opval), OP_AV2ARYLEN));}
+
     break;
 
   case 222:
-#line 1055 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1202 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 223:
-#line 1057 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1204 "perly.y"
+    { (yyval.opval) = op_prepend_elem(OP_ASLICE,
+                               newOP(OP_PUSHMARK, 0),
+                                   newLISTOP(OP_ASLICE, 0,
+                                       list((ps[-1].val.opval)),
+                                       ref((ps[-3].val.opval), OP_ASLICE)));
+                         if ((yyval.opval) && (ps[-3].val.opval))
+                             (yyval.opval)->op_private |=
+                                 (ps[-3].val.opval)->op_private & OPpSLICEWARNING;
+                       }
+
     break;
 
   case 224:
-#line 1062 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 1214 "perly.y"
+    { (yyval.opval) = op_prepend_elem(OP_KVASLICE,
+                               newOP(OP_PUSHMARK, 0),
+                                   newLISTOP(OP_KVASLICE, 0,
+                                       list((ps[-1].val.opval)),
+                                       ref(oopsAV((ps[-3].val.opval)), OP_KVASLICE)));
+                         if ((yyval.opval) && (ps[-3].val.opval))
+                             (yyval.opval)->op_private |=
+                                 (ps[-3].val.opval)->op_private & OPpSLICEWARNING;
+                       }
+
     break;
 
   case 225:
-#line 1064 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1224 "perly.y"
+    { (yyval.opval) = op_prepend_elem(OP_HSLICE,
+                               newOP(OP_PUSHMARK, 0),
+                                   newLISTOP(OP_HSLICE, 0,
+                                       list((ps[-2].val.opval)),
+                                       ref(oopsHV((ps[-4].val.opval)), OP_HSLICE)));
+                         if ((yyval.opval) && (ps[-4].val.opval))
+                             (yyval.opval)->op_private |=
+                                 (ps[-4].val.opval)->op_private & OPpSLICEWARNING;
+                       }
+
     break;
 
   case 226:
-#line 1068 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 1234 "perly.y"
+    { (yyval.opval) = op_prepend_elem(OP_KVHSLICE,
+                               newOP(OP_PUSHMARK, 0),
+                                   newLISTOP(OP_KVHSLICE, 0,
+                                       list((ps[-2].val.opval)),
+                                       ref((ps[-4].val.opval), OP_KVHSLICE)));
+                         if ((yyval.opval) && (ps[-4].val.opval))
+                             (yyval.opval)->op_private |=
+                                 (ps[-4].val.opval)->op_private & OPpSLICEWARNING;
+                       }
+
     break;
 
   case 227:
-#line 1070 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1244 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 228:
-#line 1074 "perly.y"
-    { (yyval.opval) = (OP*)NULL; ;}
+#line 1246 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, 0, scalar((ps[0].val.opval))); }
+
     break;
 
   case 229:
-#line 1076 "perly.y"
-    { (yyval.opval) = (ps[(2) - (2)].val.opval); ;}
+#line 1248 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[-2].val.opval)));
+                       }
+
     break;
 
   case 230:
-#line 1082 "perly.y"
-    { parser->in_my = 0; (yyval.opval) = my((ps[(1) - (1)].val.opval)); ;}
+#line 1251 "perly.y"
+    {
+                         (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                               op_append_elem(OP_LIST, (ps[-1].val.opval), scalar((ps[-3].val.opval))));
+                       }
+
+    break;
+
+  case 231:
+#line 1256 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                           op_append_elem(OP_LIST, (ps[0].val.opval), scalar((ps[-1].val.opval))));
+                       }
+
+    break;
+
+  case 232:
+#line 1260 "perly.y"
+    { (yyval.opval) = newSVREF((ps[-3].val.opval)); }
+
+    break;
+
+  case 233:
+#line 1262 "perly.y"
+    { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
+
+    break;
+
+  case 234:
+#line 1264 "perly.y"
+    { (yyval.opval) = newHVREF((ps[-3].val.opval)); }
+
+    break;
+
+  case 235:
+#line 1266 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, 0,
+                                      scalar(newCVREF((ps[-1].val.ival),(ps[-3].val.opval)))); }
+
     break;
 
   case 236:
-#line 1095 "perly.y"
-    { (yyval.opval) = newCVREF((ps[(1) - (2)].val.ival),(ps[(2) - (2)].val.opval)); ;}
+#line 1269 "perly.y"
+    { (yyval.opval) = newGVREF(0,(ps[-3].val.opval)); }
+
     break;
 
   case 237:
-#line 1099 "perly.y"
-    { (yyval.opval) = newSVREF((ps[(2) - (2)].val.opval)); ;}
+#line 1271 "perly.y"
+    { (yyval.opval) = newOP((ps[0].val.ival), OPf_SPECIAL);
+                           PL_hints |= HINT_BLOCK_SCOPE; }
+
     break;
 
   case 238:
-#line 1103 "perly.y"
-    { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval));
-                         if ((yyval.opval)) (yyval.opval)->op_private |= (ps[(1) - (2)].val.ival);
-                       ;}
+#line 1274 "perly.y"
+    { (yyval.opval) = newLOOPEX((ps[-1].val.ival),(ps[0].val.opval)); }
+
     break;
 
   case 239:
-#line 1109 "perly.y"
-    { (yyval.opval) = newHVREF((ps[(2) - (2)].val.opval));
-                         if ((yyval.opval)) (yyval.opval)->op_private |= (ps[(1) - (2)].val.ival);
-                       ;}
+#line 1276 "perly.y"
+    { (yyval.opval) = newUNOP(OP_NOT, 0, scalar((ps[0].val.opval))); }
+
     break;
 
   case 240:
-#line 1115 "perly.y"
-    { (yyval.opval) = newAVREF((ps[(2) - (2)].val.opval)); ;}
+#line 1278 "perly.y"
+    { (yyval.opval) = newOP((ps[0].val.ival), 0); }
+
     break;
 
   case 241:
-#line 1117 "perly.y"
-    { (yyval.opval) = newAVREF((ps[(1) - (4)].val.opval)); ;}
+#line 1280 "perly.y"
+    { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, (ps[0].val.opval)); }
+
     break;
 
   case 242:
-#line 1121 "perly.y"
-    { (yyval.opval) = newGVREF(0,(ps[(2) - (2)].val.opval)); ;}
+#line 1282 "perly.y"
+    { (yyval.opval) = newUNOP((ps[-1].val.ival), 0, (ps[0].val.opval)); }
+
+    break;
+
+  case 243:
+#line 1284 "perly.y"
+    { (yyval.opval) = newOP(OP_REQUIRE, (ps[0].val.ival) ? OPf_SPECIAL : 0); }
+
     break;
 
   case 244:
-#line 1126 "perly.y"
-    { (yyval.opval) = newAVREF((ps[(1) - (3)].val.opval)); ;}
+#line 1286 "perly.y"
+    { (yyval.opval) = newUNOP(OP_REQUIRE, (ps[-1].val.ival) ? OPf_SPECIAL : 0, (ps[0].val.opval)); }
+
+    break;
+
+  case 245:
+#line 1288 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[0].val.opval))); }
+
     break;
 
   case 246:
-#line 1131 "perly.y"
-    { (yyval.opval) = newHVREF((ps[(1) - (3)].val.opval)); ;}
+#line 1290 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED,
+                           op_append_elem(OP_LIST, (ps[0].val.opval), scalar((ps[-1].val.opval)))); }
+
+    break;
+
+  case 247:
+#line 1293 "perly.y"
+    { (yyval.opval) = newOP((ps[0].val.ival), 0); }
+
     break;
 
   case 248:
-#line 1136 "perly.y"
-    { (yyval.opval) = newGVREF(0,(ps[(1) - (3)].val.opval)); ;}
+#line 1295 "perly.y"
+    { (yyval.opval) = newOP((ps[-2].val.ival), 0);}
+
     break;
 
   case 249:
-#line 1141 "perly.y"
-    { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;}
+#line 1297 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
   case 250:
-#line 1143 "perly.y"
-    { (yyval.opval) = scalar((ps[(1) - (1)].val.opval)); ;}
+#line 1299 "perly.y"
+    { (yyval.opval) = (ps[-2].val.opval); }
+
     break;
 
   case 251:
-#line 1145 "perly.y"
-    { (yyval.opval) = op_scope((ps[(1) - (1)].val.opval)); ;}
+#line 1301 "perly.y"
+    { (yyval.opval) = newUNOP(OP_ENTERSUB, OPf_STACKED, scalar((ps[0].val.opval))); }
+
     break;
 
   case 252:
-#line 1148 "perly.y"
-    { (yyval.opval) = (ps[(1) - (1)].val.opval); ;}
+#line 1303 "perly.y"
+    { (yyval.opval) = ((ps[-2].val.ival) == OP_NOT)
+                          ? newUNOP((ps[-2].val.ival), 0, newSVOP(OP_CONST, 0, newSViv(0)))
+                          : newOP((ps[-2].val.ival), OPf_SPECIAL); }
+
+    break;
+
+  case 253:
+#line 1307 "perly.y"
+    { (yyval.opval) = newUNOP((ps[-3].val.ival), 0, (ps[-1].val.opval)); }
+
+    break;
+
+  case 254:
+#line 1309 "perly.y"
+    {
+                           if (   (ps[0].val.opval)->op_type != OP_TRANS
+                               && (ps[0].val.opval)->op_type != OP_TRANSR
+                               && (((PMOP*)(ps[0].val.opval))->op_pmflags & PMf_HAS_CV))
+                           {
+                               (yyval.ival) = start_subparse(FALSE, CVf_ANON);
+                               SAVEFREESV(PL_compcv);
+                           } else
+                               (yyval.ival) = 0;
+                       }
+
+    break;
+
+  case 255:
+#line 1320 "perly.y"
+    { (yyval.opval) = pmruntime((ps[-5].val.opval), (ps[-2].val.opval), (ps[-1].val.opval), 1, (ps[-4].val.ival)); }
+
+    break;
+
+  case 259:
+#line 1328 "perly.y"
+    { (yyval.opval) = my_attrs((ps[-1].val.opval),(ps[0].val.opval)); }
+
+    break;
+
+  case 260:
+#line 1330 "perly.y"
+    { (yyval.opval) = localize((ps[0].val.opval),1); }
+
+    break;
+
+  case 261:
+#line 1332 "perly.y"
+    { (yyval.opval) = newUNOP(OP_REFGEN, 0, my_attrs((ps[-1].val.opval),(ps[0].val.opval))); }
+
+    break;
+
+  case 262:
+#line 1337 "perly.y"
+    { (yyval.opval) = sawparens((ps[-1].val.opval)); }
+
+    break;
+
+  case 263:
+#line 1339 "perly.y"
+    { (yyval.opval) = sawparens(newNULLLIST()); }
+
+    break;
+
+  case 264:
+#line 1342 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 265:
+#line 1344 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 266:
+#line 1346 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 267:
+#line 1351 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 268:
+#line 1353 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 269:
+#line 1357 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 270:
+#line 1359 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 271:
+#line 1363 "perly.y"
+    { (yyval.opval) = NULL; }
+
+    break;
+
+  case 272:
+#line 1365 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
+    break;
+
+  case 273:
+#line 1371 "perly.y"
+    { parser->in_my = 0; (yyval.opval) = my((ps[0].val.opval)); }
+
+    break;
+
+  case 281:
+#line 1388 "perly.y"
+    { (yyval.opval) = newCVREF((ps[-1].val.ival),(ps[0].val.opval)); }
+
+    break;
+
+  case 282:
+#line 1392 "perly.y"
+    { (yyval.opval) = newSVREF((ps[0].val.opval)); }
+
+    break;
+
+  case 283:
+#line 1396 "perly.y"
+    { (yyval.opval) = newAVREF((ps[0].val.opval));
+                         if ((yyval.opval)) (yyval.opval)->op_private |= (ps[-1].val.ival);
+                       }
+
+    break;
+
+  case 284:
+#line 1402 "perly.y"
+    { (yyval.opval) = newHVREF((ps[0].val.opval));
+                         if ((yyval.opval)) (yyval.opval)->op_private |= (ps[-1].val.ival);
+                       }
+
+    break;
+
+  case 285:
+#line 1408 "perly.y"
+    { (yyval.opval) = newAVREF((ps[0].val.opval)); }
+
+    break;
+
+  case 286:
+#line 1410 "perly.y"
+    { (yyval.opval) = newAVREF((ps[-3].val.opval)); }
+
+    break;
+
+  case 287:
+#line 1414 "perly.y"
+    { (yyval.opval) = newGVREF(0,(ps[0].val.opval)); }
+
+    break;
+
+  case 289:
+#line 1419 "perly.y"
+    { (yyval.opval) = newAVREF((ps[-2].val.opval)); }
+
+    break;
+
+  case 291:
+#line 1424 "perly.y"
+    { (yyval.opval) = newHVREF((ps[-2].val.opval)); }
+
+    break;
+
+  case 293:
+#line 1429 "perly.y"
+    { (yyval.opval) = newGVREF(0,(ps[-2].val.opval)); }
+
+    break;
+
+  case 294:
+#line 1434 "perly.y"
+    { (yyval.opval) = scalar((ps[0].val.opval)); }
+
+    break;
+
+  case 295:
+#line 1436 "perly.y"
+    { (yyval.opval) = scalar((ps[0].val.opval)); }
+
+    break;
+
+  case 296:
+#line 1438 "perly.y"
+    { (yyval.opval) = op_scope((ps[0].val.opval)); }
+
+    break;
+
+  case 297:
+#line 1441 "perly.y"
+    { (yyval.opval) = (ps[0].val.opval); }
+
     break;
 
 
-/* Line 1267 of yacc.c.  */
 
       default: break;
     
 
 /* Generated from:
- * 703ebd267cf8ca45f9dee9bc0f4b21511117a0c1dca1c8bc9438ce91950217ae perly.y
- * 3e1dff60f26df8933d7aed0c0e87177a0f022c14800c0707eb62a7db4196ac98 regen_perly.pl
+ * 427b422b0ce1154d834dc461973a3254729575694f98ab600032f67ccab7b9e5 perly.y
+ * acf1cbfd2545faeaaa58b1cf0cf9d7f98b5be0752eb7a54528ef904a9e2e1ca7 regen_perly.pl
  * ex: set ro: */