Thread URI::FIND auch Rückwärts??? (12 answers)
Opened by Tom at 2004-06-28 23:47

Strat
 2004-07-06 01:17
#2978 #2978
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
aus dem Perl-Kochbuch:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use HTML::LinkExtor;

$parser = HTML::LinkExtor->new(undef, $base_url);
$parser->parse_file($filename);
@links = $parser->links;
foreach $linkarray (@links) {
my @element = @$linkarray;
my $elt_type = shift @element; # element type

# possibly test whether this is an element we're interested in
while (@element) {
# extract the next attribute and its value
my ($attr_name, $attr_value) = splice(@element, 0, 2);
# ... do something with them ...
}
}
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread URI::FIND auch Rückwärts???