Skip to content

Commit

Permalink
merge branch 'pr/27'
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
yanick committed Nov 6, 2016
2 parents 8b52c6c + c974ceb commit 676e4e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -2,7 +2,7 @@ Revision history for Template-Mustache

{{$NEXT}
- Update link to Mustache main site. (GH#29, paultcochrane)
- Lots of maintance work by paultcochrane (GH#25,GH#26,GH#30,GH#31 paultcochrane)
- Lots of maintance work by paultcochrane (GH#25,GH#26,GH#27,GH#30,GH#31 paultcochrane)

v0.5.3 2015-12-10
- Update master GitHub Mustache project url. (ReadmeCritic, GH#22)
Expand Down
7 changes: 3 additions & 4 deletions lib/Template/Mustache.pm
Expand Up @@ -46,10 +46,9 @@ sub read_file {
my ($filename) = @_;
return '' unless -f $filename;

local *FILE;
open FILE, $filename or die "Cannot read from file $filename!";
sysread(FILE, my $data, -s FILE);
close FILE;
open my $fh, "<", $filename or die "Cannot read from file $filename!";
sysread($fh, my $data, -s $fh);
close $fh;

return $data;
}
Expand Down

0 comments on commit 676e4e2

Please sign in to comment.