in reply to \n won't work?!
... will render:#!/perl/bin/perl -w use strict; use CGI; my $q = new CGI; print $q->header(); print qq(<!--prints "Hello World" with two embedded newlines-->\n); print qq(<b>Hello\n\nWorld</b>\n);
Hello World
in the browser. "View Source" reveals:By judiciously using newlines and HTML comments, you can document and beautify the raw HTML source so that troubleshooting is a snap.<!--prints "Hello World" with two embedded newlines--> <b>Hello World</b>
I hope this helps.
Where do you want *them* to go today?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: \n won't work?!
by Trimbach (Curate) on Dec 30, 2002 at 04:25 UTC | |
|
Re: Re: \n won't work?!
by Anonymous Monk on Dec 29, 2002 at 19:40 UTC | |
by pfaut (Priest) on Dec 29, 2002 at 19:53 UTC |