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

Re: [PATCH] Improved hibit text literals

Thread Previous | Thread Next
Ilya Zakharevich
February 10, 2000 19:12
Re: [PATCH] Improved hibit text literals
Message ID:
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...


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About