develooper Front page | perl.perl5.porters | Postings from January 2009

use utf8; foo =>

Thread Next
From:
Gisle Aas
Date:
January 14, 2009 04:44
Subject:
use utf8; foo =>
Message ID:
652BF779-A305-4E6D-B08A-175F43CD3C3F@activestate.com
Why do we have a difference in how 'foo' is (internally) encoded here?

   use utf8;
   use Devel::Peek; Dump([foo => 'bar']);   # 'foo' becomes an UTF8  
string
   use Devel::Peek; Dump(['foo' => 'bar']); #

I get the same result for both 5.8 and 5.10.  The first 'foo' becomes  
UTF8-infected, but not in the second one.

(Reported in http://rt.cpan.org/Ticket/Display.html?id=42396)

--Gisle


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