summaryrefslogtreecommitdiff
path: root/lib/App
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-27 18:43:45 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-27 18:43:45 +0100
commit149e463ca5430c9327cbf4e516104bdc2dcea3ae (patch)
treef4cdb639ca32441ba6e9b9c1507be1fe75a6b185 /lib/App
parente4f64d9daf20c5dabab0e50e93dbf7da647d5286 (diff)
"input_record_separator is not supported on a per-handle basis". Whoops.
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/Dthumb/Data.pm.PL4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/App/Dthumb/Data.pm.PL b/lib/App/Dthumb/Data.pm.PL
index b07ed77..a9e8ed8 100644
--- a/lib/App/Dthumb/Data.pm.PL
+++ b/lib/App/Dthumb/Data.pm.PL
@@ -4,7 +4,6 @@ use warnings;
use 5.010;
use autodie;
use MIME::Base64 qw(encode_base64);
-use IO::Handle;
my ($out_file) = @ARGV;
@@ -19,8 +18,7 @@ for my $file (readdir($share_dh)) {
}
open(my $fh, '<', "share/${file}");
- $fh->input_record_separator(undef);
- my $content = <$fh>;
+ my $content = do { local $/ = undef; <$fh> };
close($fh);
if ($file =~ qr{ \. (png | gif) $ }ox) {