You said: another program will generate a big list of output similar to this :...

I'm wondering if this might be confusion about terminology. If you run that other program and it prints all this information on your screen, this is called the "standard out" (or "stdout") of that program. If you want your own perl script to read this in directly from that program (not from a disk file), then you simply place your perl script as part of a "pipeline" command, using the "vertical bar" character to join the output of that other command as the input to your perl script -- like this:

other_program arg1 arg2 | your_perl_script
The vertical bar is the common shell syntax for creating pipeline commands in both MS-DOS Prompt and Unix command line interfaces. Mac OS X, being based on Unix, would also provide this syntax in a command line interface window.

This way your perl script simply needs to read STDIN, using the common idiom:

while (<>) { # handle each line of data here }
(I'm sorry if I have misunderstood your question.)

In reply to Re: output on the command line by graff
in thread output on the command line by amoura

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.