X7ROOT File Manager
Current Path:
/usr/share/doc/perl-HTML-Parser-3.71/eg
usr
/
share
/
doc
/
perl-HTML-Parser-3.71
/
eg
/
📁
..
📄
hanchors
(1.11 KB)
📄
hdump
(541 B)
📄
hform
(1.8 KB)
📄
hlc
(547 B)
📄
hrefsub
(2.72 KB)
📄
hstrip
(1.67 KB)
📄
htext
(548 B)
📄
htextsub
(788 B)
📄
htitle
(434 B)
Editing: htitle
#!/usr/bin/perl # This program will print out the title of an HTML document. use strict; use HTML::Parser (); sub title_handler { my $self = shift; $self->handler(text => sub { print @_ }, "dtext"); $self->handler(end => "eof", "self"); } my $p = HTML::Parser->new(api_version => 3, start_h => [\&title_handler, "self"], report_tags => ['title'], ); $p->parse_file(shift || die) || die $!; print "\n";
Upload File
Create Folder