#!/usr/bin/perl # # This script will go through all 256 valid hex values (0-255) and display # the value in decimal, hex, and its ASCII character. This demonstrates # decimal-hex and decimal-character conversions. foreach $char (0..255) { printf "Decimal %02i is Hex %02x and is character %1c.\n",$char,$char,$char; }