in reply to Printing long(er) lines

Heya,

Earlier you said..
When opening the output file with vi ...

Are you looking at the output file in vi? vim?
You didn't mention cat, or, a pager (like less or more).

Are you on a stock linux machine? If so, your vi may be vim.

If so, check your

/etc/vimrc
/usr/local/etc/vimrc
or, your ~/.vimrc

for a vim text wrapping directive such as:
set textwidth=72
If you're using the stock vi on Solaris or BSD or something else there's textwrap controls too.. I don't know them off the top of my head.. I think it's the "wraplen" directive ..

cat your outputfile in a large xterm at the command line - see if you have the same problem.. that is, without using an editor?

As hinted at by Zaxo and Dragonchild, this probably has not to do with Perl:)

Replies are listed 'Best First'.
Re^2: Printing long(er) lines
by rspence (Initiate) on Jun 08, 2004 at 04:23 UTC
    All, Thanks for replying - I've been sitting here too long. I was getting newlines because I assigned a variable to the output of a command that, yes, returns a newline after its data. Deduct points for me. All I needed was chomp. Sorry - please move on. rspence