Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
How to use regex in Tree->look_downby corpx (Acolyte) |
on Oct 24, 2009 at 07:48 UTC ( [id://803011]=perlquestion: print w/replies, xml ) | Need Help?? |
corpx has asked for the wisdom of the Perl Monks concerning the following question:
I need to look_down a tree and find all items which has style attributes of 128px;width:160px; (there might be more style attributes for items, but this is all I'm interested in)
Is there any way to use regex to filter this?
Currently I have @rows = $tree->look_down('style' => /128px\;width:160px\;/ );
but that doesnt even compile :/ Any ideas?
Back to
Seekers of Perl Wisdom
|
|