in reply to Re: div in cgi
in thread div in cgi

I don't understand the wording "DEPRECATED" here.

The fact that it will be removed from CORE doesn't mean it will cease to exist in CPAN, right?

Mind you large parts of this monastery is using such functions from CGI, a hypothetical update to a newer Perl would be impossible without such a module for backwards compatibility.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^3: div in cgi
by marto (Cardinal) on Sep 13, 2018 at 15:16 UTC

    In so much that it no longer does what it's supposed to, notice that the output isn't 'pretty', from the docs:

    'It will be removed from the CGI distribution in a future release, so you should no longer use it and remove it from any code that currently uses it.

    For now it has been reduced to a shell to prevent your code breaking, but the "pretty" functions will no longer output "pretty" HTML.'

    It then continues to give examples of better ways of doing this. Regardless OP has already had templating systems and other frameworks suggested to them.

      There is some confusion about CGI::Pretty and CGI::HTML::Functions .

      At least in my head...

      update

      the OP is using functions which are (currently) exported by CGI and not by CGI::Pretty, but documented in CGI::HTML::Functions

      X:\>perl -MCGI=:standard print li ( div({"class=inforno"}, "<img src=''>") ); __END__ <li><div class=inforno><img src=''></div></li>

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        I don't know what confusion you have on this, maybe if you explain it I can offer an opinion. From reading the docs the maintainer is working hard to patch things that are show stoppers, while firmly telling people not to use this stuff for anything new, with a bunch of good reasons why. Regardless, people keep recommending it and no doubt finding all the old posts online for getting things done in perl using CGI and friends.