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

Re: [PATCH] (vaguely connected with) [perl #21875] Hash ref transformed as a list

Thread Previous | Thread Next
From:
H.Merijn Brand
Date:
April 7, 2003 16:57
Subject:
Re: [PATCH] (vaguely connected with) [perl #21875] Hash ref transformed as a list
Message ID:
20030408015557.2334.H.M.BRAND@hccnet.nl
On Mon 07 Apr 2003 22:43, Dave Mitchell <davem@fdgroup.com> wrote:
> > ## Demonstrate a bug in perl 5.8 when the first key of a hash ref
> > ## starts with the letter 'q' unquoted
> 
> P5Pers:
> while using -DT to look at what the tokenizer was doing here, I found that
> it (ie -DT) crashes recent bleedperls. Here's a little patch to stop that. 
> No idea yet about the actual bug report....
> 
> PS - I have no idea what a TERMORDORDOR is, apart from the fact that

I bet you its Term-or-dor-dor ('//' defined-or)

> MORDOR is contained within it :-(.
> 
> -- 
> Standards (n). Battle insignia or tribal totems.
> 
> 
> --- perl.h-	Mon Apr  7 21:29:23 2003
> +++ perl.h	Mon Apr  7 21:25:20 2003
> @@ -3182,6 +3182,7 @@
>      XATTRTERM,
>      XTERMBLOCK,
>      XTERMORDORDOR /* evil hack */
> +    /* update exp_name[] in toke.c if adding to this enum */
>  } expectation;
>  
>  enum {		/* pass one of these to get_vtbl */
> --- toke.c-	Mon Apr  7 21:29:10 2003
> +++ toke.c	Mon Apr  7 21:24:04 2003
> @@ -2141,7 +2141,7 @@ S_find_in_my_stash(pTHX_ char *pkgname, 
>  #ifdef DEBUGGING
>      static char* exp_name[] =
>  	{ "OPERATOR", "TERM", "REF", "STATE", "BLOCK", "ATTRBLOCK",
> -	  "ATTRTERM", "TERMBLOCK"
> +	  "ATTRTERM", "TERMBLOCK", "TERMORDORDOR"
>  	};
>  #endif
>  

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
  WinNT 4, Win2K pro & WinCE 2.11.  Smoking perl CORE: smokers@perl.org
http://archives.develooper.com/daily-build@perl.org/   perl-qa@perl.org
send smoke reports to: smokers-reports@perl.org, QA: http://qa.perl.org


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