CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
\n or br

 



TedW
Deleted

Nov 26, 2000, 6:54 AM

Post #1 of 2 (773 views)
\n or br Can't Post

Why doesn't \n give me a new line and I have to use <br> instead?

print("this is line one.\n");
print(" this is line two.\n");

# prints this is line one. this is line two.


print("this is line one.<br>");
print(" this is line two.\n");

#prints
#this is line one.
#this is line two.


japhy
Enthusiast

Nov 26, 2000, 7:41 AM

Post #2 of 2 (773 views)
Re: \n or br [In reply to] Can't Post

Because HTML is marked up text. It requires a <br> tag for a line-break.

------------------
Jeff "japhy" Pinyan -- accomplished author, consultant, hacker, and teacher


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives