User:Tstaerk

Revision as of 17:51, 27 January 2007 by Tstaerk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Here's how I draw a mindmap of this wiki:

duffman:~/developernew # cat ../wikimap/eigen.pl
#!/usr/bin/perl
require HTML::LinkExtor;
use LWP::Simple; 

$p = HTML::LinkExtor->new(\&parse, "");
sub parse {
    my($tag, %links) = @_;
    my ($att, $url) = @{[%links]};
    print "$url\n";
}
my $content = get("http://developernew.kde.org/Special:Allpages"); #Get web page in content 
die "get failed" if (!defined $content);
my $parser = HTML::LinkExtor->new(); #create LinkExtor object with no callbacks
$p->parse($content); #parse content

duffman:~/developernew #

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal