in reply to div in cgi
Continuing to make life difficult for yourself I see. Your script prints what you tell it:
CGI::Pretty is DEPRECATED and will be removed in a future release. Ple +ase see https://github.com/leejo/CGI.pm/issues/162 for more informati +on at /home/marto/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26 +.1/CGI/Pretty.pm line 21. <li><div class=class=inforno /> <div><img <img src=''</div></li>
You ask it to print invalid HTML, which it does.
use CGI::Pretty ":standard"; print li ( div({"class=inforno"}, "<img src=''>") );
Produces:
CGI::Pretty is DEPRECATED and will be removed in a future release. Ple +ase see https://github.com/leejo/CGI.pm/issues/162 for more informati +on at /home/marto/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26 +.1/CGI/Pretty.pm line 21. <li><div class=inforno><img src=''></div></li>
You seem to be ignoring good advice, choosing to use modules which are deprecated, even when this module was supported it was ~10x slower than just using CGI, and recommended for debugging purposes only.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: div in cgi
by LanX (Saint) on Sep 13, 2018 at 15:12 UTC | |
by marto (Cardinal) on Sep 13, 2018 at 15:16 UTC | |
by LanX (Saint) on Sep 13, 2018 at 15:26 UTC | |
by marto (Cardinal) on Sep 13, 2018 at 15:33 UTC | |
by LanX (Saint) on Sep 13, 2018 at 15:52 UTC | |
| |
|
Re^2: div in cgi
by bigup401 (Pilgrim) on Sep 13, 2018 at 15:11 UTC |