Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Re: Re: Printing contents of file on a HTML page.

by fglock (Vicar)
on Sep 23, 2002 at 18:02 UTC ( #200187=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Printing contents of file on a HTML page.
in thread Printing contents of file on a HTML page.

There are many possible solutions for this. One is:

print OUT "<pre>"; while (<FIL>) { print OUT; } print OUT "</pre>";


Comment on Re: Re: Re: Re: Re: Printing contents of file on a HTML page.
Download Code
Re: Re: Re: Re: Re: Re: Printing contents of file on a HTML page.
by BUU (Prior) on Sep 23, 2002 at 23:44 UTC
    print map{$_.'<br>'}<FIL>;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://200187]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-07-04 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls