in reply to Print a big string formatted and in multiple lines
Hi alen129,
Please see How do I post a question effectively? - please use <code> tags to format not only your code but your data as well.
To convert the string '\n' (that is, a literal backslash followed by the letter n) to a newline (perhaps plus something else), you could do
$Detail =~ s/\\n/\n/g; # or $Detail =~ s/\\n/<br>\n/g; # for HTML
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print a big string formatted and in multiple lines
by alen129 (Novice) on Sep 30, 2016 at 18:44 UTC | |
by haukex (Archbishop) on Sep 30, 2016 at 19:02 UTC |