a2d/res/unpxmap.pl

14 lines
157 B
Perl
Raw Normal View History

2019-01-05 04:03:59 +00:00
#!/usr/bin/env perl
use strict;
use warnings;
while (<STDIN>) {
chomp;
next unless m/px\(/i;
s/[^01]//g;
tr/01/ #/;
print $_, "\n";
}