📁 File Manager Pro
v10.0.3 | PHP: 7.4.15
Server: Apache/2.4.25 (Debian)
2026-07-02 08:53:29
📂
/ (Root)
/
usr
/
share
/
doc
/
libhtml-parser-perl
/
examples
📍 /usr/share/doc/libhtml-parser-perl/examples
🔄 Refresh
✏️
Editing: htitle
Read Only
#!/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";
💾 Save Changes
❌ Cancel