Thread Probleme mit HTML::Parser und LWP::UserAgent (8 answers)
Opened by fealXX at 2012-03-26 13:18

pq
 2012-03-26 15:01
#157051 #157051
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
dann bräuchte man mal eine kleine beispieldatei und den HTML::Parser-code von dir.

an sich funktioniert das nämlich schon:
Code: (dl )
1
2
3
4
5
6
$ perl -wE'
my $linkziel = "http://foo.example/";
if ($linkziel =~ m/^http/i) {
say "starts with http"
}'
starts with http


gib doch einfach auch mal $linkziel aus, um zu prüfen, ob wirklich das drinsteht, was du erwartest.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Probleme mit HTML::Parser und LWP::UserAgent