From: Dobrica Pavlinusic Date: Sun, 5 Feb 2012 19:26:44 +0000 (+0100) Subject: read all data because length is picture size, not data stream X-Git-Url: http://git.rot13.org/?p=Printer-Zebra.git;a=commitdiff_plain;h=8a149ec83ba4c04d06cf7458f68340e932d7c806 read all data because length is picture size, not data stream --- 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