dump the real string

From: toylet (toylet_at_mail.hongkong.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 21:03:40 +0800


my $line = <>;

I input "a" and press enter.

Now $line should contain 2 bytes: 'a' and end-of-line character.

How could I print the content of $line (both bytes) in hex format?

-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    8:58pm up 2:41 1 user 0.99 0.98


Relevant Pages