use Test::More tests => 2; $comment = 'foo bar'; ok( $comment =~ m{[^<>/]*}, 'Detect no specials'); $comment = 'foo < bar'; ok( $comment !~ m{[^<>/]*}, 'Detect <');