#! /usr/bin/perl use strict; use warnings; use LWP::Simple; use HTML::Parser; my @clients; my $file = "site1.txt"; my $url = 'http://user:pwd@my-home-page.de'; my $content = getstore($url,$file); my $p = HTML::Parser->new(); $p->handler(start => \&start_handler,"tagname,attr,self"); $p->parse_file($file); foreach my $client(@clients){ print $_,"\n" if($_); } sub start_handler{ return if(shift ne 'td'); my ($class) = shift->{href}; my $self = shift; my $text; $self->handler(text => sub{$text = shift;},"dtext"); $self->handler(end => sub{push(@clients,split(/\ /,$text)) if(shift eq 'td')},"tagname"); }