尝试将tr
具有 a 的项目class
与以eve
or开头的前三个字母匹配day
。这是我的尝试:
my @stuff = $p->look_down(
_tag => 'tr',
class => 'qr/eve*|day*/g'
);
foreach (@stuff) {
print $_->as_text;
};
只是好奇,什么样的物体在里面@stuff
?
这个可以吗?见下文:
my @stuff = $p->look_down(
_tag => 'tr',
class => qr/eve.*|day.*/
);
print "\n\n";
foreach (@stuff) {
print $_->as_text . "\n\n";
};