use Test::Chunks; plan tests => 2 * chunks; run_unlike('html', 're1'); run_is 're1' => 're2'; __END__ === Unlike Test --- html --- re1 regexp=i software error --- re2 chomp (?i-xsm:software error)