summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-01-03 00:07:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-01-03 00:07:13 +0000
commitbab9c0ac4be68b8d3e7a915e21d06ed39d0fa563 (patch)
tree433c7a34050655e49940106dcbae7bf42e930f98 /pp_pack.c
parent35bc0dc84153b4a6ad4b24f4d9e7d25cc7a0fb97 (diff)
downloadperl-bab9c0ac4be68b8d3e7a915e21d06ed39d0fa563.tar.gz
Tidy up change #18751, so that the second parameter to unpack()
defaults to $_ at compile-time, instead of run-time (like all other primitives that default to $_). p4raw-link: @18751 on //depot/perl: 13dcffc60adeca175c32a1ea11ec8756d4853ad2 p4raw-id: //depot/perl@22047
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 55469fb0ab..3e4993d2e2 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -1707,8 +1707,7 @@ S_unpack_rec(pTHX_ register tempsym_t* symptr, register char *s, char *strbeg, c
PP(pp_unpack)
{
dSP;
- SV *right = (MAXARG > 1) ? POPs : GvSV(PL_defgv);
- SV *left = POPs;
+ dPOPPOPssrl;
I32 gimme = GIMME_V;
STRLEN llen;
STRLEN rlen;