in reply to Re: Re: How do I safely, portably extract one or more bytes from a string?
in thread How do I safely, portably extract one or more bytes from a string?

I suspected that might be the case, but couldn't find the relevant documentation. perlvar states that setting $/ to a reference to an integer will cause file reads to read in no more than that number of bytes per iteration.

I've re-scanned over: perlopentut, perllocale, perlport, perlunicode, and perluniintro. I know you're probably right, and that it's probably in there somewhere.

So I guess what I'm saying is, which POD have I missed that discusses the effects of locales on the behavior of local $/ = \$integer; ?


Dave


"If I had my life to live over again, I'd be a plumber." -- Albert Einstein
  • Comment on Re: Re: Re: How do I safely, portably extract one or more bytes from a string?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: How do I safely, portably extract one or more bytes from a string?
by BrowserUk (Patriarch) on Nov 29, 2003 at 13:42 UTC

    Sorry davido, I'm wrong and you are right.

    Despite my attempt to verify this before responding to your post, it seems I saw what I wanted to see instead of what was really there:(

    Personally, I think that this is an error, in that it means that a file containing 'fixed-length unicode names', will have variable length records, but that probably sounds like sour-grapes, so I'll shut up now:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    Hooray!
    Wanted!