diff options
author | Father Chrysostomos <sprout@cpan.org> | 2015-08-19 14:20:36 -0700 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2015-09-29 10:49:20 -0400 |
commit | 195eefec8954a37afa243ff3a7cb526b7d3a5e36 (patch) | |
tree | f0351ef1f5f72c052a52f2c382ebfb42f16f025c /pp.c | |
parent | af7ce3e6aca06566f53139c7c2f8e770a2755a02 (diff) | |
download | perl-195eefec8954a37afa243ff3a7cb526b7d3a5e36.tar.gz |
In pp.c:pp_coreargs, use DEFSV directly
rundefsv2 is only necessary for lexical $_. It’s slower than a simple
DEFSV, which is what it falls back to anyway.
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -6183,10 +6183,7 @@ PP(pp_coreargs) case OA_SCALAR: try_defsv: if (!numargs && defgv && whicharg == minargs + 1) { - PUSHs(find_rundefsv2( - find_runcv_where(FIND_RUNCV_level_eq, 1, NULL), - cxstack[cxstack_ix].blk_oldcop->cop_seq - )); + PUSHs(DEFSV); } else PUSHs(numargs ? svp && *svp ? *svp : &PL_sv_undef : NULL); break; |