in reply to Don't understand why can't get 'size' assoc w/STDOUT

Perl treats STDOUT as a simple flat output file. Flat files don't have arbitrary restrictions on their maximum line length, nor maximum number of lines. The fact that you've got STDOUT routed to a screen of x,y dimensions isn't relevant. You may want something more like Curses, which gives you a terminal to work with instead of an output file that happens to point to the screen.


Dave

  • Comment on Re: Don't understand why can't get 'size' assoc w/STDOUT

Replies are listed 'Best First'.
Re^2: Don't understand why can't get 'size' assoc w/STDOUT
by perl-diddler (Chaplain) on Apr 17, 2011 at 23:18 UTC
    Nope.

    If that was true, then why would the example immediately above your post work?

    Perl doesn't treat 'STDOUT' as ANYTHING.

    STDOUT is WHATEVER is hooked up to 'FD1' when you start your program.

    No, I don't want to use curses, other than to throw them at people who are giving me every reason under the sun why they don't know why it doesn't work.

    If I sound irritated, it's because I've went through a thread previous to this that entirely got sidetracked by people who didn't know the answer to the question, so tried to get me to do it some other way. I know a bunch of ways to "HACK" around the the problem, but none of them enlightenment me as to why the original problem doesn't work.

    I don't need a solution -- I needed understanding of why it wasn't working.