package Win32::IE::Link; use strict; use warnings; # $Id: Link.pm 401 2005-08-26 11:55:50Z abeltje $ use vars qw( $VERSION ); $VERSION = '0.005'; =head1 NAME Win32::IE::Link Win32::IE::Link - Mimic WWW::Mechanize::Link =head1 SYNOPSIS use Win32::OLE; use Win32::IE::Link; my $agent = Win32::OLE->new( 'InternetExplorer.Application' ); $agent->Navigate( $uri ); # extract the links and wrap them as Win32::IE::Link my $doc = $agent->Document; my @links; for ( my $i=0; $i < $doc->anchors->lenght; $i++ ) { push @links, Win32::IE::Link->new( $doc->anchors( $i ) ); } # print the information from the links: foreach my $link ( @links ) { printf "%s as %s\n", $link->url, $link->text||""; } =head1 DESCRIPTION The C object is a thin wrapper around the DOM-object supplied by the InternetExplorer.Application. It is implemented as a blessed reference to the Win32::OLE-DOM object. =head1 METHODS =head2 Win32::IE::Link->new( $element ) C<$element> is Win32::OLE object with a C of B