read all data because length is picture size, not data stream
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 5 Feb 2012 19:26:44 +0000 (20:26 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 5 Feb 2012 19:26:44 +0000 (20:26 +0100)
ZPL2pbm.pl

index e439ae4..8a7c2b7 100755 (executable)
@@ -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