line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Display::Dump; |
2
|
5
|
|
|
4
|
|
1058
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
155
|
|
3
|
4
|
|
|
4
|
|
1914
|
use parent 'HTML::Display::Common'; |
|
5
|
|
|
|
|
742
|
|
|
4
|
|
|
|
|
21
|
|
4
|
4
|
|
|
4
|
|
228
|
use vars qw($VERSION); |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
343
|
|
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
|
|
|
1
|
|
33788
|
=for example |
|
2
|
|
|
1
|
|
508
|
|
|
2
|
|
|
|
|
2194
|
|
|
2
|
|
|
|
|
159
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
89
|
|
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("Hello world!"); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=for example end |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=for example_testing |
26
|
|
|
|
|
|
|
isa_ok($browser,"HTML::Display::Common"); |
27
|
|
|
|
|
|
|
is($_STDOUT_,"Hello world!","Dumped output"); |
28
|
|
|
|
|
|
|
is($_STDERR_,undef,"No warnings"); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
7
|
|
|
6
|
0
|
60
|
sub display_html { print $_[1]; }; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 AUTHOR |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Copyright (c) 2004-2013 Max Maischein C<< >> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 LICENSE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This module is released under the same terms as Perl itself. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |