in reply to Re^3: Byte counts and Seek function
in thread Byte counts and Seek function

Oops. Visually scanned for it, but didn't see the utf8 function call the first time through. Should have used a highlighting finder!   (Damned human eyes...)

Replies are listed 'Best First'.
Re^5: Byte counts and Seek function
by vsespb (Chaplain) on Sep 01, 2013 at 21:01 UTC
    utf8::xxx functions can be used without "use utf8". it's documented.

      Interestingly, the utf8::utf8() function is not documented (Strawberry 5.14.4.1, online 5.18.0), although it exists. What does it do?

      Update: Sorry, I was confused by Perl's autovivification behavior.

      >perl -wMstrict -le "print exists &utf8::is_utf8 ? 'yes' : 'no'; print \&utf8::is_utf8; ;; print exists &utf8::utf8 ? 'yes' : 'no'; print \&utf8::utf8; " yes CODE(0x68c66c) no CODE(0x68c17c)