<%init> my $content = $m->content(); if ( $content =~ /<tbody>/ ) { $m->print($content); } return; </%init>