CHips L MINI SHELL

CHips L pro

Current Path : /proc/self/root/proc/2/root/usr/local/ssl/share/doc/perl-HTML-Parser-3.64/eg/
Upload File :
Current File : //proc/self/root/proc/2/root/usr/local/ssl/share/doc/perl-HTML-Parser-3.64/eg/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";


Copyright 2K16 - 2K18 Indonesian Hacker Rulez