[Quoting Benjamin Trott, on March 12 2001, 13:03, in "Repost: Namespace re"]
> use IO::Buffer;
> my $buffer = IO::Buffer->new;
>
> ## Add a 32-bit integer.
> $buffer->put_int32(10932930);
>
> ## Get it back.
> my $int = $buffer->get_int32;
Somehow this doesn't look IO related to me.
> All of the I<get_*> and I<put_*> methods respect the
> internal offset state in the buffer object. This means
> that, for example, if you call I<get_int16> twice in a
> row, you can be ensured that you'll get the next two
> 16-bit integers in the buffer.
Does that mean that
$buf->put_int16(24);
$buf->put_int32(1233455);
$buf->put_int16(99);
$buf->get_int16 # 24
$buf->get_int16 # 99
$buf->get_int32 # 1233455
Puzzled,
Johan