diff options
author | Radu Greab <radu@netsoft.ro> | 2001-03-07 01:04:44 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-07 14:51:17 +0000 |
commit | 2ec6af5f978df7271f6d544a10f1ed025070c53f (patch) | |
tree | 520f818e80fe14ecbecedf48d63b45be0cb9cd8a /pp.c | |
parent | 770fab92d753b1aa3cfd2d1bbafe0e666303a23a (diff) | |
download | perl-2ec6af5f978df7271f6d544a10f1ed025070c53f.tar.gz |
Re: [ID 20010305.012] chop() against list assignment returns char chopped from el zero
Message-ID: <15013.20716.201459.540421@ix.netsoft.ro>
p4raw-id: //depot/perl@9068
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -745,9 +745,10 @@ PP(pp_schop) PP(pp_chop) { - dSP; dMARK; dTARGET; - while (SP > MARK) - do_chop(TARG, POPs); + dSP; dMARK; dTARGET; dORIGMARK; + while (MARK < SP) + do_chop(TARG, *++MARK); + SP = ORIGMARK; PUSHTARG; RETURN; } |