Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

CGI::Pretty

Name CGI::Pretty
Version 4.54
Located at /usr/local/share/perl5
File /usr/local/share/perl5/CGI/Pretty.pm
Is Core No
Search CPAN for this module CGI::Pretty
Documentation CGI::Pretty
Module Details CGI::Pretty

NAME

CGI::Pretty - module to produce nicely formatted HTML code


CGI::Pretty IS DEPRECATED

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.


Alternatives

the HTML::HTML5::Parser manpage + the HTML::HTML5::Writer manpage + the XML::LibXML::PrettyPrint manpage:

    print HTML::HTML5::Writer->new(
        start_tags => 'force',
        end_tags   => 'force',
    )->document(
        XML::LibXML::PrettyPrint->new_for_html( indent_string => "\t" )
        ->pretty_print(
            HTML::HTML5::Parser->new->parse_string( $html_string )
        )
    );

the Marpa::R2::HTML manpage (see the html_fmt script for examples)

the HTML::Tidy manpage

the HTML::Parser manpage

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024