in reply to Help with Toke Parser
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 |