George S. Baugh hace 4 años
padre
commit
d5c2f7b8a6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Trog/Data/FlatFile.pm

+ 1 - 1
lib/Trog/Data/FlatFile.pm

@@ -82,7 +82,7 @@ sub write($self,$data) {
         my $file = "$datastore/$post->{id}";
         my $update = [$post];
         if (-f $file) {
-            my $slurped = File::Slurper::read_text($file);
+            my $slurped = File::Slurper::read_binary($file);
             my $parsed  = $parser->decode($slurped);
 
             $update = [(@$parsed, $post)];