Tom Christiansen wrote:
> printf "uid %d logged on from %s on %s.\n",
> $him->ut_uid, $him->ut_host, scalar local $him->ut_date;
>
>
Is ut_uid a scaler value here? It occured to me when I read this that it would
be nice to get rid of the distinction between
$him->{ut_uid}
$him->[ut
Here was my old demo/proposal, such as it was.
--tom
$buff = "\0" x rusage->sizeof();
syscall(&SYS_getrusage, &RUSAGE_SELF, $buff) && die "getrusage: $!";
$ru = rusage->new_from_buffer($buff);
# or
$ru = rusage->new();
$ru->unpack($buff);
# or
@fields = rusage->unp
>The existing pack and unpack methods depend upon a simple
>grammar which leads to opaque format specifications,
Well, can lead. "f c4" is easy, but the big ones aren't.
>which are
>often difficult to get right, and which carry no information
>regarding variable names.
>A more descriptive gra