in reply to Help with Toke Parser

As you are already using LWP::Simple you can use that module's head() function to retrieve the size of the file:
my %hash; while ( my $token = $p->get_tag("a") ) { if ( my $href = $token->[1]{'href'} ) { # may need to prefix domain to $href my ($type, $length, $mod, $exp, $server) = head($href); $hash{$href} = $length; } }

Replies are listed 'Best First'.
Re^2: Help with Toke Parser
by Anonymous Monk on Oct 28, 2015 at 01:32 UTC
    Awesome! Thanks. Works great. Would still love to use a hash but this will get me to where I need for now.