my $line_num = $.;
chomp( $line );
- next if $line =~ /^\s*#/;
my $is_cut;
if ( $line =~ /^=(.{0,3})/ ) {
} else {
+ # Skip comments in code
+ next if $line =~ /^\s*#/;
+
# parse $line to see if it's a $VERSION declaration
my( $vers_sig, $vers_fullname, $vers_pkg ) =
($line =~ /VERSION/)
Simple Simon
+You can find me on the IRC channel
+#simon on irc.perl.org.
+
=cut
---
$dist->regen;
}
$pod{$section} = $content;
}
- is( $pod{NAME}, q|Simple - It's easy.|, 'collected NAME pod section' );
- is( $pod{AUTHOR}, q|Simple Simon|, 'collected AUTHOR pod section' );
+ my %expected = (
+ NAME => q|Simple - It's easy.|,
+ AUTHOR => <<'EXPECTED'
+Simple Simon
+
+You can find me on the IRC channel
+#simon on irc.perl.org.
+EXPECTED
+ );
+ for my $text (values %expected) {
+ $text =~ s/^\s+//;
+ $text =~ s/\s+$//;
+ }
+ is( $pod{NAME}, $expected{NAME}, 'collected NAME pod section' );
+ is( $pod{AUTHOR}, $expected{AUTHOR}, 'collected AUTHOR pod section' );
}
{