alen129 has asked for the wisdom of the Perl Monks concerning the following question:
As you can see it's a mess and very unreadable. Now my question is how do I format it better so it does a newline right before it display the date? something like this:'Sep 30 2016 8:32AM - [2] [Notification] [CHP]-Problem changed from IN +FO-Information to CLOSURE of a Road by CHP\nSep 30 2016 8:32AM - [1] +#2 NB LN CLOSED FROM EL RIVINO TO SANTA ANA\n'
Sep 30 2016 8:32AM - [2] [Notification] [CHP]-Problem changed from INF +O-Information to CLOSURE of a Road by CHP\n
The values in $Detail are copied form a database entry.Sep 30 2016 8:32AM - [1] #2 NB LN CLOSED FROM EL RIVINO TO SANTA ANA\n +'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print a big string formatted and in multiple lines
by haukex (Archbishop) on Sep 30, 2016 at 17:51 UTC | |
by alen129 (Novice) on Sep 30, 2016 at 18:44 UTC | |
by haukex (Archbishop) on Sep 30, 2016 at 19:02 UTC |