http://www.perlmonks.org?node_id=370532


in reply to Re: Testing Zork-style game
in thread Testing Zork-style game

Except that you'd want to write
ok( $out eq $expected );
as
is( $out, $expected );
If the strings are really long and hard to read through, look at Test::LongString.

xoxo,
Andy