debian man page for html::display::common

Query: html::display::common

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

HTML::Display::Common(3pm)				User Contributed Perl Documentation				HTML::Display::Common(3pm)

NAME
HTML::Display::Common - routines common to all HTML::Display subclasses __PACKAGE__->new %ARGS Creates a new object as a blessed hash. The passed arguments are stored within the hash. If you need to do other things in your constructor, remember to call this constructor as well : package HTML::Display::WhizBang; use parent 'HTML::Display::Common'; sub new { my ($class) = shift; my %args = @_; my $self = $class->SUPER::new(%args); # do stuff $self; }; $display->display %ARGS This is the routine used to display the HTML to the user. It takes the following parameters : html => SCALAR containing the HTML file => SCALAR containing the filename of the file to be displayed base => optional base url for the HTML, so that relative links still work location (synonymous to base) Basic usage : my $html = "<html><body><h1>Hello world!</h1></body></html>"; my $browser = HTML::Display->new(); $browser->display( html => $html ); Location parameter : If you fetch a page from a remote site but still want to display it to the user, the "location" parameter comes in very handy : my $html = '<html><body><img src="/images/hp0.gif"></body></html>'; my $browser = HTML::Display->new(); # This will display part of the Google logo $browser->display( html => $html, base => 'http://www.google.com' );
AUTHOR
Copyright (c) 2004-2007 Max Maischein "<corion@cpan.org>"
LICENSE
This module is released under the same terms as Perl itself. perl v5.10.1 2007-10-20 HTML::Display::Common(3pm)
Related Man Pages
html::display(3pm) - debian
html::display::common(3pm) - debian
html::wikiconverter::kwiki(3pm) - debian
html::wikiconverter::phpwiki(3pm) - debian
html::wikiconverter::wikkawiki(3pm) - debian
Similar Topics in the Unix Linux Community
HTML question
display HTML text in body using unix mailX ????
Sendmail with HTML body and attachment
Emailing html file as body not attachment
Difficulty cleaning references to duplicated images in HTML code