#!/usr/bin/perl -CIOESA -w use charnames qw/:full/; #print ord($_), "\n" for @ARGV; for(@ARGV) { for(split "") { my $c = ord; my $hex = ""; my @bytes; { use bytes; @bytes = split //; @bytes = map { sprintf("%02x", ord) } @bytes; $hex = join(",", @bytes); } printf("%s\t%d\t%04x\t$hex\t%s\n", $_, $c, $c, charnames::viacode($c)) for split ""; } }