Hill, Ronald wrote:
[snip]
my $realtable = $tree->look_down(
'_tag', 'table',
sub {
my $table = $_[0]->look_down('_tag','table');
return 1 if $table->attr('cellpadding') =~ m{/6/};
return 0; # otherwise bad
}
);
[snip]
Looks like your $_[0]->look_down('_tag', 'table'); isn't finding anything.

BTW, do you mean to be looking down a second time? look_down, as I understand it will recurse through the child nodes until it finds the first instance of what you are looking for.

--
In Reach Technology:    http://www.inreachtech.net/

Robert G. Werner
[EMAIL PROTECTED]

Tel: 559.304.5122

Windows NT -- it'll drive you buggy!

-- Gareth Barnard

Reply via email to