Binmode + Bump version and update Changes
[slob.git] / lib / Slob.pm
index 9e7c5a119013345c73fdc3c944b00257af65081e..0603b8bcca023f84fc9e889743fbcf0446183ca1 100644 (file)
@@ -3,7 +3,7 @@ package Slob;
 use 5.014000;
 use strict;
 use warnings;
-our $VERSION = '0.002_001';
+our $VERSION = '0.002002';
 
 use constant MAGIC => "!-1SLOB\x1F";
 
@@ -65,7 +65,8 @@ sub new {
        if (ref $path eq 'IO') {
                $fh = $path
        } else {
-               open $fh, '<', $path or croak "Cannot open \"$path\": $!"
+               open $fh, '<', $path or croak "Cannot open \"$path\": $!";
+               binmode $fh;
        }
        my $self = bless {path => $path, fh => $fh}, $class;
        $self->{header} = $self->read_header;
This page took 0.010194 seconds and 4 git commands to generate.