package WWW::Rapidshare::Free; use strict; BEGIN { $^W = 1; $| = 1; } use WWW::Mechanize; use HTML::Form; use HTML::Parser; use Data::Validate::URI qw( is_http_uri ); use Carp qw( croak ); use Exporter; our $VERSION = '0.01'; our @ISA = qw( Exporter ); our @EXPORT_OK = qw( links add_links add_links_from_file check_links download verbose connection clear_links ); our %EXPORT_TAGS = ( all => \@EXPORT_OK ); my $parser = HTML::Parser->new( api_version => 3, start_h => [ \&_start, 'tagname, attr' ], text_h => [ \&_text, 'text' ], end_document_h => [ \&_end_document ], ); my $mech = WWW::Mechanize->new; my ( $tagname, $class, $verbose, $counter, $check_links, $error, @links, @download_links ) = ( '', '', 1, 0 ); my $delay = 120; # An explicit value which will most likely be overwritten my @text; # Gets the tagname and also marks the start of the error tag: #