Author Topic: [perl] ascii lookup  (Read 3434 times)

0 Members and 1 Guest are viewing this topic.

Offline Ender

  • x86
  • Hero Member
  • *****
  • Posts: 2390
    • View Profile
[perl] ascii lookup
« 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'
« Last Edit: September 11, 2006, 12:17:34 am by Ender »

Offline Sidoh

  • Moderator
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: [perl] ascii lookup
« Reply #1 on: September 11, 2006, 12:58:32 am »
Memorizing the ASCII table is much more entertaining.  ;D