Thread HTML:: Parser: Probleme (6 answers)
Opened by steinwolf at 2005-10-26 19:48

steinwolf
 2005-10-26 20:04
#59424 #59424
User since
2003-08-04
367 Artikel
BenutzerIn
[default_avatar]
Ja das cc ist nur schwachsinn..


edit:
habs jetzt

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sub start_handler{

my $class = shift;
#my ($class) = shift->{class};
my $attr = shift;
my $self = shift;

if($class eq 'title') {
$self->handler(text => \&get_title, "text");
#$self->handler(end => sub{ },"dtext");
}
elsif($class eq 'a') {
$self->handler(text => \&get_a, "dtext");
}
else { }

#$self->handler(end => sub{push(@tests,[$class,$text]) if($tagname eq 'title')},"tagname");
}

sub get_title()
{
print $title = shift;
}
\n\n

<!--EDIT|steinwolf|1130342877-->
"Did you know? You can use your old motor oil to fertilize your lawn." - Blinkster - Professionelles EDV Forum

View full thread HTML:: Parser: Probleme