Subject: | Compilation fails when try{} catch {} is followed by POD |
6:05 spiceman@cynic ~ % perl -MV=TryCatch
TryCatch
/home/marcel/perl5/lib/perl5/i686-linux/TryCatch.pm: 1.002000
/home/marcel/perl5/lib/perl5/i686-linux/TryCatch.pm: 1.002000
6:05 spiceman@cynic ~ % cat a.pl
#!/usr/bin/env perl
use strict;
use warnings;
use TryCatch v1.002;
try {
}
catch {
}
=pod
TryCatch b0rks when immediately followed by POD documentation
=cut
6:05 spiceman@cynic ~ % perl a.pl
syntax error at a.pl line 12, near ";="
Execution of a.pl aborted due to compilation errors.