Clan x86

Technical (Development, Security, etc.) => General Programming => Tutorials, References, and Examples => Topic started by: Ender on September 10, 2006, 11:55:21 PM

Title: [perl] ascii lookup
Post by: Ender on September 10, 2006, 11:55:21 PM
A simple, fun, and perhaps useful perl script that I wrote and use in my personal bin.
http://64.9.205.64/~andrew/code/tools/asciilookup

You can see the lowercase range with the -l switch, the uppercase range with -u, and the decimal range with -d.

Examples:
asciilookup -d gives decimal
asciilookup -ul gives lowercase and uppercaser
asciilookup defaults to -dul
asciilookup -s 48 57 gets the table for all characters between 48dec and 57dec
asciilookup -s 30h 39h gets the table for all characters between 30hex and 39hex (48dec and 57dec)
asciilookup -s 60o 71o gets the table for all characters between 60oct and 71oct (48dec and 57dec)
asciilookup -s 60 gets the table for decimal value 60.
asciilookup -s 6z gets the table for ascii character '6' (the ending z denotes ascii)
asciilookup -s az mz gets the table for all characters between 'a' and 'm'
Title: Re: [perl] ascii lookup
Post by: Sidoh on September 11, 2006, 12:58:32 AM
Memorizing the ASCII table is much more entertaining.  ;D