Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: \n won't work?!

by dbp (Pilgrim)
on Dec 29, 2002 at 05:06 UTC ( [id://222856]=note: print w/replies, xml ) Need Help??


in reply to \n won't work?!

Think about what your script is doing; it's outputing html. Html ignores whitespace, including eols. If you want a linebreak you'll need to use html tags to get the effect. <br>, <p></p> etc.

Replies are listed 'Best First'.
Re: Re: \n won't work?!
by Anonymous Monk on Dec 29, 2002 at 05:13 UTC
    Thanks a lot guys :)

    If I am to learn more about Perl, would you suggest that I use CGI.pm, or do more coding by myself? Is CGI.pm very popular?

      CGI.pm is definitely the way to go for web/cgi programming; for an explanation of why see use CGI or die;. But Perl is a rich language and is useful for a lot more than web-automation and cgi programming involves a lot of little (often annoying) details that may hamper your ability to learn the fundamentals of the language. I'd suggest picking up a good general Perl book, such as The Camel, and an introductory text like Learning Perl if you are really interested in learning Perl. Even if all you want to do is web programming, a general understanding of the language will serve you well.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found