diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2003-01-20 08:34:10 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2003-01-20 08:34:10 +0000 |
commit | 54edfe98c96ca4fc3201cb56346b2da311667ac2 (patch) | |
tree | bcddfe6c6b86fae5f79fcd9d81f18153aadde02b /doio.c | |
parent | 530ffa68c5cfb9f475ad558801f0d613f3ce34e1 (diff) | |
download | perl-54edfe98c96ca4fc3201cb56346b2da311667ac2.tar.gz |
Integrate #18405 from maint-5.8 which fixes whitespac
issues in open(FH,"&...")
p4raw-id: //depot/perl@18517
p4raw-integrated: from //depot/maint-5.8/perl@18516 'merge in' doio.c
(@18405..)
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -323,13 +323,13 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw, if (num_svs > 1) { Perl_croak(aTHX_ "More than one argument to '%c&' open",IoTYPE(io)); } + /*SUPPRESS 530*/ + for (; isSPACE(*type); type++) ; if (num_svs && (SvIOK(*svp) || (SvPOK(*svp) && looks_like_number(*svp)))) { fd = SvUV(*svp); num_svs = 0; } else if (isDIGIT(*type)) { - /*SUPPRESS 530*/ - for (; isSPACE(*type); type++) ; fd = atoi(type); } else { @@ -339,8 +339,6 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw, } else { GV *thatgv; - /*SUPPRESS 530*/ - for (; isSPACE(*type); type++) ; thatgv = gv_fetchpv(type,FALSE,SVt_PVIO); thatio = GvIO(thatgv); } |