From: Stephen McCamant Date: Tue, 22 Jul 2003 09:41:10 +0000 (-0400) Subject: Fix saving 'V' magic in scan_vstring() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8fc7bb1c7604bebd186017cc94c49e7d29fbd334;p=p5sagit%2Fp5-mst-13.2.git Fix saving 'V' magic in scan_vstring() Message-ID: <16157.16118.998307.110037@syllepsis.MIT.EDU> p4raw-id: //depot/perl@20200 --- diff --git a/toke.c b/toke.c index 2527e95..0274db2 100644 --- a/toke.c +++ b/toke.c @@ -7984,10 +7984,10 @@ Perl_scan_vstring(pTHX_ char *s, SV *sv) pos++; if ( *pos != '.') { /* this may not be a v-string if followed by => */ - start = pos; - while (start < PL_bufend && isSPACE(*start)) - ++start; - if ((PL_bufend - start) >= 2 && *start == '=' && start[1] == '>' ) { + char *next = pos; + while (next < PL_bufend && isSPACE(*next)) + ++next; + if ((PL_bufend - next) >= 2 && *next == '=' && next[1] == '>' ) { /* return string not v-string */ sv_setpvn(sv,(char *)s,pos-s); return pos;