look_down is a method of HTML::Element.
If an attr_value parameter is a qr() then it is supposed to do a regexp match for you, but I couldn't make this work. I had to use
$link = $root->look_down( _tag => 'a', sub { $_[0]->attr('title') =~ qr(^Cool); } );
instead of
$link = $root->look_down( _tag => 'a', title => qr(^Cool) );
Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.
Quick
- ($a, $b....) = unpack("A2A7...", $packed)
- push( array, list )