A quick CPAN search didn't turn up anything.

Parsing would involve mostly fixed-width column data; The difficulty arises when the data in some columns exceeds the width and pushes rightward columns over. Other strategies could be to "consume" no-whitespace-words left-to-right after noting the column ordering output.

I simply don't want to start out writing this if it's already been done.

Excerpt of some sample output below. Note the last line shows the TIME column overly wide.

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMA +ND root 6332 1.0 0.0 4096 660 ? S 06:25 0:00 /bin/ +sh ./monitor.sh /var/log/kern.log.1 root 6349 0.0 0.0 14976 1116 ? R 06:25 0:00 /bin/ +ps auxw ntp 10330 0.0 0.0 25808 1532 ? Ss Jul23 0:16 /usr/ +sbin/ntpd -p /var/run/ntpd.pid -g -u 106:115 root 13438 0.0 0.2 10248 4512 ? Ss Jul03 0:00 /usr/ +sbin/knockd -d -i eth0 bind 24285 4.6 2.2 212112 46136 ? Ssl Jul17 1056:29 /usr +/sbin/named -u bind

In reply to Module to parse output from Unix ps command? by shriken

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.