Skip to content

Commit

Permalink
More coding fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Mar 6, 2018
1 parent 86c3bc5 commit 5b8949e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Perlanet/Trait/FeedFile.pm
Expand Up @@ -42,7 +42,7 @@ has 'feed' => (
isa => 'HashRef',
is => 'rw',
default => sub {
{ file => 'atom.xml', format => 'Atom' }
{ file => 'atom.xml', format => 'Atom' };
},
);

Expand Down
2 changes: 1 addition & 1 deletion lib/Perlanet/Trait/TemplateToolkit.pm
Expand Up @@ -50,7 +50,7 @@ has 'page' => (
isa => 'HashRef',
is => 'rw',
default => sub {
{ file => 'index.html', template => 'index.tt' }
{ file => 'index.html', template => 'index.tt' };
},
);

Expand Down
2 changes: 1 addition & 1 deletion lib/Perlanet/Trait/YAMLConfig.pm
Expand Up @@ -79,7 +79,7 @@ use constant THIRTY_DAYS => 30 * 24 * 60 * 60;
sub get_config_from_file {
my ($self, $file) = @_;

open my $cfg_file, '<:utf8', $file
open my $cfg_file, '<:encoding(UTF-8)', $file
or croak "Cannot open file $file: $!";

my $cfg = LoadFile($cfg_file);
Expand Down

0 comments on commit 5b8949e

Please sign in to comment.