I have problem in nested div tgs
Nope, your problem is you're not using a tree/DOM/xpath ... htmltreexpather.pl/HTML::TreeBuilder::XPath or xpather.pl/XML::LibXML
If you did your code could become
my @rows = $tree->findnodes(q{ //div[ @class =~ /row/ ] }); for my $row ( @rows ){ my @cells = $row->findnodes(q{ //div[ @class =~ /cell/ ] }); for my $cell ( @cells ){ Dance( $cell ); } }
In reply to Re: Nested div tag
by Anonymous Monk
in thread Nested div tag
by perlmad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |