Skip to content

Commit

Permalink
"fix C<print "foo ${\()}"> (pp_refgen fumbles when G_SCALAR, no args)"
Browse files Browse the repository at this point in the history
Msg-ID:  <199805070402.AAA02858@aatma.engin.umich.edu>
 Files:  pp.c

p4raw-id: //depot/maint-5.004/perl@971
  • Loading branch information
Gurusamy Sarathy authored and Tim Bunce committed May 14, 1998
1 parent 5362f88 commit 4683234
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,13 @@ PP(pp_refgen)
{
dSP; dMARK;
if (GIMME != G_ARRAY) {
MARK[1] = *SP;
SP = MARK + 1;
if (++MARK <= SP)
*MARK = *SP;
else
*MARK = &sv_undef;
*MARK = refto(*MARK);
SP = MARK;
RETURN;
}
EXTEND_MORTAL(SP - MARK);
while (++MARK <= SP)
Expand Down

0 comments on commit 4683234

Please sign in to comment.