use warnings; use strict; use Pod::Usage; =head1 SYNOPSIS Synopsis =head1 FOO Foo! =head1 BAR Bar! =head1 QUZ Quz! =cut open my $fh, '>', \my $str or die $!; pod2usage(-exitval=>'NOEXIT',-verbose=>99,-output=>$fh, -sections=>['FOO','QUZ']); close $fh; print "<<$str>>\n"; __END__ <>