in reply to Re: string gets front truncated
in thread string gets front truncated

Regardless of my goal, since perl is supposed to have no intrinsic limit on string length, shouldn't I be able to read a long string without it getting truncated? And, isn't it odd that the FRONT is truncated? If a buffer was getting full, I'd expect that the late-arriving data would be dumped. And, if it was starting over to fill it up again from the front, how come it ends at the right place?

Replies are listed 'Best First'.
Re^3: string gets front truncated
by Anonymous Monk on Jul 30, 2008 at 10:27 UTC
    You are assuming that 1) its getting truncated, 2) perl is truncating it. You can't verify the output by what you see in your console. Example
    C:\>perl -e "print qq,\r$_, for 1 .. 3" 3 C:\>perl -e "print qq,\r$_, for 1 .. 3" |hexdump 00000000: 0D 31 0D 32 0D 33 - | 1 2 3| 00000006;