Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    HTML::Display 0.39

    Download button

    No screenshots available
    Downloads: 456  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Max Maischein | More programs
    Perl Artistic License / FREE
    June 13th, 2008, 15:46 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::Display description

    A Perl module that will display HTML locally in a browser

    HTML::Display is a Perl module that will display HTML locally in a browser.

    SYNOPSIS

    use strict;
    use HTML::Display;

    # guess the best value from $ENV{PERL_HTML_DISPLAY_CLASS}
    # or $ENV{PERL_HTML_DISPLAY_COMMAND}
    # or the operating system, in that order
    my $browser = HTML::Display->new();
    warn "# Displaying HTML using " . ref $browser;
    my $location = "http://www.google.com/";
    $browser->display(html => $html, location => $location);

    # Or, for a one-off job :
    display("Hello world!");


    This module abstracts the task of displaying HTML to the user. The displaying is done by launching a browser and navigating it to either a temporary file with the HTML stored in it, or, if possible, by pushing the HTML directly into the browser window.

    The module tries to automagically select the "correct" browser, but if it dosen't find a good browser, you can modify the behaviour by setting some environment variables :

    PERL_HTML_DISPLAY_CLASS

    If HTML::Display already provides a class for the browser you want to use, setting PERL_HTML_DISPLAY_CLASS to the name of the class will make HTML::Display use that class instead of what it detects.

    PERL_HTML_DISPLAY_COMMAND

    If there is no specialized class yet, but your browser can be controlled via the command line, then setting PERL_HTML_DISPLAY_COMMAND to the string to navigate to the URL will make HTML::Display use a system() call to the string. A %s in the value will be replaced with the name of the temporary file containing the HTML to display.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    display HTML | offline browsing | Perl module | HTML | offline | browsing

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM