4 use warnings FATAL => 'all';
6 my $from = do { local (@ARGV, $/) = ('lib/HTML/Zoom.pm'); <> };
8 $from =~ s/.*^=head1 SYNOPSIS\n//sm;
10 $from =~ s/^=head1.*//sm;
12 my $code = join "\n", map { s/^ // ? ($_) : () } split "\n", $from;
14 open my $syn_test, '>', 't/synopsis.t'
15 or die "Couldn't open t/synopsis.t - you screwed something up. Go fix it.\n";
17 print $syn_test "use strict;
18 use warnings FATAL => 'all';
19 use Test::More qw(no_plan);