Subject: | Dynamic collecting fields breaks first fields() call |
e47e:/home/ezktm/BDC > perl -MProc::ProcessTable -e 'my $pt =
Proc::ProcessTable->new(); my @fields = $pt->fields(); printf( "<%s>\n",
join( ">\n<", @fields ) );'
<pid>
<pid>
<ppid>
<sess>
<pgrp>
<uid>
<suid>
<luid>
<euid>
<gid>
<egid>
<priority>
<nice>
<thcount>
<stat>
<flags>
<flags2>
<adspace>
<majflt>
<minflt>
<utime>
<stime>
<cutime>
<cstime>
<start>
<size>
<tsize>
<ttyp>
<ttynum>
<ttympx>
<drss>
<trss>
<dvm>
<pctmem>
<pctcpu>
<comm>
<cmndline>
BTW: why are not simply used the static char *Fields[] from the
OS-dependent x.h?