CGI/Perl Guide
|
Learning Center
|
Forums
|
Advertise
|
Login
Site Search:
in
Perl Guide
PerlGuru Forums
Learning Ctr
MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN
Home
:
Perl Programming Help
:
Beginner
:
\n or br
Print Thread
TedW
Deleted
Nov 26, 2000, 6:54 AM
Post #1 of 2 (579 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 (579 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
Announcements
PerlGuru Announcements
Perl Programming Help
Frequently Asked Questions
Beginner
Intermediate
Advanced
Regular Expressions
mod_perl
DBI
Win32 Programming Help
Fun With Perl
Perl Quizzes - Learn Perl the Fun Way
Perl Golf
Perl Poetry
Need a Custom or Prewritten Perl Program?
I need a program that...
I Need a Programmer for Freelance Work
Throw Down The Gauntlet
General Discussions
General Questions
Feedback
Tutorial/Article Suggestions for The Learning Cent
Internet Security
Other Programming Languages
Javascript
PHP
Search
this forum
this category
all forums
for
All words
Any words
Whole Phrase
(
options
)
Powered by
Gossamer Forum v.1.2.0
Web Applications
&
Managed Hosting
Powered by Gossamer Threads
Visit our
Mailing List Archives