It is interesting to note that a Devel::Peek::Dump done in 5.16 also shows UTF8, but 5.16 does not have the problem that 5.18 does.
C:\Users\gweekly>c:\ActivePerl5.16.3\bin\perl -d i:\bin\badperl

Loading DB routines from perl5db.pl version 1.37
Editor support available.

Enter h or 'h h' for help, or 'perldoc perldebug' for more help.

main::(i:\bin\badperl:16):          if grep { /^ SAM $ /xmsi} keys %ENV;

  DB<1> c 27
main::(i:\bin\badperl:27):      my $fixed = substr "X$name", 1; # Should be the
same

  DB<2> use Devel::Peek

  DB<3> Dump $name
SV = PVNV(0x2cc711c) at 0x2a27314
  REFCNT = 2
  FLAGS = (PADMY,POK,pPOK,UTF8)
  IV = 0
  NV = 0
  PV = 0x2d6614c "SAM"\0 UTF8 "SAM"
  CUR = 3
  LEN = 12

  DB<4> q

C:\Users\gweekly>c:\ActivePerl5.18.1\bin\perl -d i:\bin\badperl

Loading DB routines from perl5db.pl version 1.39_10
Editor support available.

Enter h or 'h h' for help, or 'perldoc perldebug' for more help.

main::(i:\bin\badperl:16):          if grep { /^ SAM $ /xmsi} keys %ENV;

  DB<1> c 27
main::(i:\bin\badperl:27):      my $fixed = substr "X$name", 1; # Should be the
same

  DB<2> use Devel::Peek

  DB<3> Dump $name
SV = PVMG(0x2f14534) at 0x2bfd924
  REFCNT = 2
  FLAGS = (PADMY,POK,pPOK,UTF8)
  IV = 0
  NV = 0
  PV = 0x2f730d4 "SAM"\0 UTF8 "SAM"
  CUR = 3
  LEN = 12

  DB<4>

In reply to Re^2: LibXML and %ENV in 5.18 on Windows by gweekly
in thread LibXML and %ENV in 5.18 on Windows by gweekly

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.