thornton102 has asked for the wisdom of the Perl Monks concerning the following question:

I have a Perl script in UNIX that prints about 150 columns of data. Even if I set the number of columns to 175 using 'stty,' either within the program (`stty columns 175`;) or in the CSH before running it, it always wraps at a maximum of about 130 columns. How can I get around this? I *can* truncate the line since the text on that side isn't all that important, but I'd rather not.

Replies are listed 'Best First'.
Re: max # columns in UNIX
by Anonymous Monk on Jun 04, 2012 at 14:38 UTC

    either within the program (`stty columns 175`;)

    Try use autodie qw/ system /; system q[stty columns 175 ]; if the call fails there should be an error message