| 1 | package HTML::Display::Dump; | ||
| 2 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use parent 'HTML::Display::Common'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use vars qw($VERSION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 5 | $VERSION='0.40'; | |
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | HTML::Display::Dump - dump raw HTML to the console | ||
| 10 | |||
| 11 | =head1 SYNOPSIS | ||
| 12 | |||
| 13 | 2 | ▶ | =for example |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | use HTML::Display; | ||
| 15 | |||
| 16 | =for example begin | ||
| 17 | |||
| 18 | my $browser = HTML::Display->new( | ||
| 19 | class => 'HTML::Display::Dump', | ||
| 20 | ); | ||
| 21 | $browser->display("<html><body><h1>Hello world!</h1></body></html>"); | ||
| 22 | |||
| 23 | =for example end | ||
| 24 | |||
| 25 | =for example_testing | ||
| 26 | isa_ok($browser,"HTML::Display::Common"); | ||
| 27 | is($_STDOUT_,"<html><body><h1>Hello world!</h1></body></html>","Dumped output"); | ||
| 28 | is($_STDERR_,undef,"No warnings"); | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | 7 | ▶ | sub display_html { print $_[1]; }; |
|
Subroutine
display_html: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | Copyright (c) 2004-2013 Max Maischein C<< <corion@cpan.org> >> | ||
| 37 | |||
| 38 | =head1 LICENSE | ||
| 39 | |||
| 40 | This module is released under the same terms as Perl itself. | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | 5 | 1; | |