Se - slurping zero bytes at end
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 14 Aug 2010 14:44:11 +0000 (16:44 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 14 Aug 2010 14:44:11 +0000 (16:44 +0200)
evolis-printer.pl

index 23f431a..2b1845c 100755 (executable)
@@ -81,6 +81,10 @@ while(<>) {
                my $h = int( $len / 128 );
                save_pbm $path, $w, $h, $data;
 
+       } elsif ( $c eq 'Se' ) {
+               my $zero = <>;
+               print "Se - slurping zero bytes at end ",dump($zero);
+               exit 0;
        } else {
                warn "UNKNOWN: $c ", dump(@a);
        }