develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [PATCH] [perl #21875] Hash ref transformed as a list

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
April 8, 2003 14:19
Subject:
Re: [PATCH] [perl #21875] Hash ref transformed as a list
Message ID:
20030408232238.3773bc5d.rgarciasuarez@free.fr
Dave Mitchell wrote:
> On Mon, Apr 07, 2003 at 09:43:17PM +0100, Dave Mitchell wrote:
> > > ## Demonstrate a bug in perl 5.8 when the first key of a hash ref
> > > ## starts with the letter 'q' unquoted
> 
> And here's a patch for the actual bug. It turns out that the hash / block
> disambiguator code in toke.c got confused when seeing "{ q".
> After looking for, and failing to find a q//-type construct, it wasn't going
> back and checking whether the thing starting with a q was a plain word
> instead.

Have you a test case or something ? Your patch doesn't work for me,
so I'd like to know with what you tested it.

-- 
Unthinkable is not *NIX

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About