Last active
August 29, 2015 14:24
-
-
Save dirkjanfaber/1b7b92f70cab5056593f to your computer and use it in GitHub Desktop.
Encode Xerox PIN code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/env perl | |
# | |
# Simple script for encoding a Xerox PIN code. | |
for (0 .. 3 ) { | |
my @c = split(//, qw/@ABCDEFGHI [ZYX_^]\\SR TUVWPQRS\\] UTWVQPSR]\\/[$_]); | |
print @c[(split(//, $ARGV[0]))[$_]]; | |
} | |
print "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See http://steviethecat.tumblr.com/post/123970749596/encode-xerox-pin-code-for-cups-ppd for more description.