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.
In reply to Re: div in cgi
by marto
in thread div in cgi
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |