in reply to Re^2: output div tag inside html
in thread output div tag inside html
You can’t get pretty printing today without hoops. Hoops == code smell. This prints what you want without spacing. Templates or HEREDOCs are better by far for what you want; as I think might have already been mentioned. Maybe. :P
use strict; use CGI ":standard"; my @names = ('Foo', 'Bar', 'Moo'); print li([ map "#$_", @names ]); __END__ <li>#Foo</li> <li>#Bar</li> <li>#Moo</li>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: output div tag inside html
by bigup401 (Pilgrim) on Sep 13, 2018 at 21:34 UTC | |
by marto (Cardinal) on Sep 14, 2018 at 11:35 UTC | |
by bigup401 (Pilgrim) on Sep 14, 2018 at 11:55 UTC | |
by marto (Cardinal) on Sep 14, 2018 at 11:56 UTC |