
h.m.brand at xs4all
May 20, 2008, 1:04 AM
Post #3 of 5
(132 views)
Permalink
|
|
Re: [PATCH: TODO Tests] Re: [perl #53806] No complain about bareword
[In reply to]
|
|
On Tue, 20 May 2008 09:45:19 +0200, "Rafael Garcia-Suarez" <rgarciasuarez[at]gmail.com> wrote: > 2008/5/12 Bram <p5p[at]perl.wizbit.be>: > > > > Quoting Bram <p5p[at]perl.wizbit.be>: > > > >> (Patch with TODO tests coming soon) > >> > > > > Patch attached. > > And here's a fix. Applied as change #33874 > All tests pass, but that's a really old piece of code here. > > --- toke.c.orig 2008-05-19 08:51:44.000000000 +0200 > +++ toke.c 2008-05-19 17:17:18.000000000 +0200 > @@ -5667,10 +5667,10 @@ > > /* Call it a bare word */ > > + bareword: > if (PL_hints & HINT_STRICT_SUBS) > pl_yylval.opval->op_private |= OPpCONST_STRICT; > else { > - bareword: > if (lastchar != '-') { > if (ckWARN(WARN_RESERVED)) { > d = PL_tokenbuf; > -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11, & 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/
|