in reply to Generating Files

Try this:

foreach my $line (@data) { print "$line\015\012" }

Explanation: you need to send \r\n to the client over http, but the definition of \r and \n are different for each client, so using "\015\012" is safer..

-- Joost downtime n. The period during which a system is error-free and immune from user input.

Replies are listed 'Best First'.
Re: Re: Generating Files
by mephit (Scribe) on May 10, 2002 at 19:18 UTC
    If this is indeed HTML, sticking a <p> in the print statement might be a Good Idea, too. (Or a separate print p(); if using CGI.pm)