wrote:
> Dear expert,
>
> Why my text under END_OF_TEXT doesn't
> appear with line break (i.e. in browser it should
> appear in 3 lines)
This is an HTML question, not a Perl question. You are in the wrong place.
The reason is that newline characters do not indicate line-breaks in
HTML. The HTML element <BR> (or <BR/>) does. See
http://www.w3.org/TR/html4/
DS
as shown in this script verbatim:
>
> __BEGIN__
>
> use CGI qw(:standard);
>
> print header,
> start_html(
> -title => "Some Long Text",
> -style => { -src => './css_scripts/my.css' },
> ),
> h1("Some long text");
>
> print <<END_OF_TEXT;
>
> foo bar
> foo bar
> foo bar
>
> END_OF_TEXT
>
> __END__
>
> It appears as one line like this:
>
> foo bar foo bar foo bar
>
> What's wrong with my script above?
Nothing. It is fine, and the browser is correctly displaying the HTML
you provided.
>
> --
> Regards,
> Gundala Viswanath
>