Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: Byte counts and Seek function

by chromatic (Archbishop)
on Aug 27, 2013 at 22:42 UTC ( #1051200=note: print w/replies, xml ) Need Help??

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

That's the utf8 pragma. I know what it does in the posted code: nothing, because there are no non-ASCII characters appearing literally in the source code.

What's the utf8 function in the OP's code do?

Replies are listed 'Best First'.
Re^4: Byte counts and Seek function
by AnomalousMonk (Canon) on Aug 27, 2013 at 22:50 UTC

    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...)

      utf8::xxx functions can be used without "use utf8". it's documented.

        Interestingly, the utf8::utf8() function is not documented (Strawberry, 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)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051200]
[marto]: Sharepoint ss a mess
[marto]: /ss/is/
[Discipulus]: yes I can imagine marto but they dont take my opinion in consideration..
[marto]: I told our client this, they spent many years and lots of consultants to try and get it to do what they wanted. They're ditching it now
[Discipulus]: I hope at least a minimal implementation, in the middle of july i'll have the first introductional course..

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-06-27 09:10 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (601 votes). Check out past polls.