develooper Front page | perl.perl5.porters | Postings from February 2000

Re: [PATCH] Improved hibit text literals

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
February 10, 2000 19:12
Subject:
Re: [PATCH] Improved hibit text literals
Message ID:
200002110312.WAA21504@monk.mps.ohio-state.edu
Larry Wall writes:
>     print "\N{WHITE SMILING FACE}";
> 
> produces 
> 
>     constant(\N{...}): %^H is not localized at - line 2, within string
> 
> Talk about obscure error messages!

You got what you paid for!  Obscure bugs cause obscure messages!

I think the error message it wants-to/should produce is

  No \N{} translation rule set.  Did you 'use charnames'? at...

[But due to a bug another error message intervenes first.]  With the
current wording it might have produced:

  constant(\N{WHITE SMILING FACE}): %^H is not defined at...

Ilya

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