The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict; use warnings;
my $t; use lib ($t = -e 't' ? 't' : 'test');
use Test::More tests => 3;
use IO::All;

# Write some data to a temporary file and retrieve all the paragraphs.
my $data = io("$t/synopsis5.t")->slurp;

my $temp = io->temp;
ok($temp->print($data));
ok($temp->seek(0, 0));

my @paragraphs = $temp->getlines('');
is(scalar @paragraphs, 4);