From 8a149ec83ba4c04d06cf7458f68340e932d7c806 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 5 Feb 2012 20:26:44 +0100 Subject: [PATCH] read all data because length is picture size, not data stream --- ZPL2pbm.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ZPL2pbm.pl b/ZPL2pbm.pl index e439ae4..8a7c2b7 100755 --- a/ZPL2pbm.pl +++ b/ZPL2pbm.pl @@ -31,8 +31,7 @@ while( $line ) { warn "# ~DG$1 => [$name] t=$t w=$w\n"; - my $data; - read $in, $data, $t; + my $data = <$in>; my $out; # ZPL decompress -- 2.20.1