in reply to Re: Function to produce formatted ord values of a string
in thread Function to produce formatted ord values of a string

Tell me if I'm wrong: I think it's dangerous to use split (character vs byte, unicode). With unpack it's less ambiguous.

Replies are listed 'Best First'.
Re^3: Function to produce formatted ord values of a string
by rovf (Priest) on Apr 20, 2012 at 15:10 UTC
    Well, given the sprintf format specification you are using, Unicode is not forseen anyway in your code, but in general: I don't see, why split should be unsafe (it operates on characters, which includes unicode characters), while unpack operates on bytes. Hence, maybe it is unpack which is dangerous, but since I don't have experience with unpack, I leave this question to more knowledgable monks...

    -- 
    Ronald Fischer <ynnor@mm.st>