D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
perl-HTML-Parser
/
eg
/
Filename :
htitle
back
Copy
#!/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";
Name
Size
Last Modified
Owner
Permissions
Actions
hanchors
1.111
KB
October 21 2013 5:44:45
root
0644
hdump
0.528
KB
October 21 2013 5:44:45
root
0644
hform
1.803
KB
October 21 2013 5:44:45
root
0644
hlc
0.534
KB
October 21 2013 5:44:45
root
0644
hrefsub
2.717
KB
October 21 2013 5:44:45
root
0644
hstrip
1.674
KB
October 21 2013 5:44:45
root
0644
htext
0.535
KB
October 21 2013 5:44:45
root
0644
htextsub
0.77
KB
October 21 2013 5:44:45
root
0644
htitle
0.424
KB
October 21 2013 5:44:45
root
0644
2017 © D7net | D704T team