in reply to Printing a Text File

In addition to above, you don't show that you have supplied http headers. Simplest way is:
use CGI; my $q = CGI::new; print $q->header; # and $q->start_html and *many* more

Replies are listed 'Best First'.
Re: Re: Printing a Text File
by Trimbach (Curate) on Apr 11, 2001 at 05:00 UTC
    Actually, simplest is:
    use CGI qw (:standard); print header;
    There's (usually) no need to use the OO interface in CGI.pm... the functional interface is, well, a lot more functional. :-D

    Gary Blackburn
    Trained Killer