in reply to Re^2: I can't make a new line =(
in thread I can't make a new line =(
You are printing html output to a browser; the browser is supposed to treat all white-space characters the same (newlines are no different from spaces or tabs or carriage returns).
To tell the browser to break a line, include a "<br>" tag (or, to be more XML-ish, "<br/>") at the point where you would normally use "\n".
Update: to be more precise, something like this would do:
my $quality = ( $number >= 40 ) ? "old" : "still young"; print "$value will be $number in twenty years.<br>Wow $value, you're $ +quality!";
|
|---|