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

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.

Replies are listed 'Best First'.
Re^6: div in cgi
by LanX (Saint) on Sep 13, 2018 at 15:52 UTC
    I have to dig out old documentation resp. pirated O'Reilly books to find out what CGI::Pretty used to do.

    According to the alternative code Lee is showing I'd expect that it's parsing and tidying HTML.

    According to the O'Reilly snippet it just adds newlines and indentation to CGI's HTML-Functions.

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

      Metacpan allows you to select old versions and view the POD, like search.cpan used to. What you mention is one of the issues I raised, a lot of old info that's highly ranked on search engines (some of it at legally questionable), vastly out of date, and still championed by a vocal minority.

        While I am one of the “don’t learn CGI.pm today” crowd I am also quite sad about the loss of CGI::Pretty and related methods in CGI and I think it’s a mistake to deprecate and phase them out. There is no real gain but confusion. CGI::Simple or even CGI::Tiny should have been the target.

        I was explaining why I was confused (remember you asked!) and the docs are misleading.

        I already found the original version, but how can I or another reader know that I need to look up the original version if the new POD is pointing into the wrong direction.

        I agree about the OP, but the doc could be clearer when breaking old websites like PM.

        update

        And I can understand that Lee didn't want to maintain the AUTOLOAD code in CGI::Pretty

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