Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Help with Toke Parser

by tangent (Parson)
on Oct 27, 2015 at 21:08 UTC ( [id://1146180]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1146180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found