James Edward Gray II wrote: > > Is there a simple way, like a one liner perhaps, that will give me the > octal/hex value of a character? I need to look certain characters up, > so I would like to be able to give it something like an 'a' or even > "\n" and have it answer 141 or 012 (assuming UNIX). Thanks for your > time.
my $oct = sprintf '%o', $num; my $hex = sprintf '%x', $num John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]