in reply to [Perl-CGI] Print non-interpolated string
If you want to preserve white-space patterns (e.g. line breaks, line-initial spaces, etc) when the browser displays the submitted text, you should apply the conversions described by choroba above, and then
print qq{<pre>\n$text\n</pre><br/>};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [Perl-CGI] Print non-interpolated string
by Digioso (Sexton) on Apr 04, 2014 at 08:22 UTC | |
by Anonymous Monk on Apr 04, 2014 at 08:31 UTC | |
by Digioso (Sexton) on Apr 04, 2014 at 09:45 UTC | |
by mr_mischief (Monsignor) on Apr 04, 2014 at 16:18 UTC | |
by Digioso (Sexton) on Apr 06, 2014 at 10:10 UTC | |
by Anonymous Monk on Apr 05, 2014 at 08:06 UTC | |
by Digioso (Sexton) on Apr 06, 2014 at 10:04 UTC |
In Section
Seekers of Perl Wisdom