in reply to Re^2: PV limits on 64-bit perls?
in thread PV limits on 64-bit perls?

But if I try to substr that scalar with an offset > 2**31, it bellyaches about "substr outside of string"

Heh ... on the x64 build of ActivePerl (perl-5.10.1, build 1006):
C:\>perl -we "print substr 'hello', (2 ** 32)+$_, 1 for 0..4" hello
Cheers,
Rob

Replies are listed 'Best First'.
Re^4: PV limits on 64-bit perls?
by BrowserUk (Patriarch) on Sep 23, 2009 at 03:25 UTC

    You 'ad me goin' there for a sec :) A very neat demo of the problem!


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.