diff --git a/bin/generate.pl b/bin/generate.pl index 9dcb0c0..ac41209 100644 --- a/bin/generate.pl +++ b/bin/generate.pl @@ -1,7 +1,7 @@ use strict; use warnings; -use 5.012; -use autodie; +#use 5.012; +#use autodie; use Template; use DateTime; @@ -21,7 +21,7 @@ foreach my $p (@pages) { - open my $fh, '<', "pages/$p"; + open my $fh, '<', "pages/$p" or die $!; my %params = ( content => '' ); while (my $row = <$fh>) { #chomp $row;