http://qs1969.pair.com?node_id=971125

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Currently in Perl 5.10.1 I succeeded in denting the wall with my head trying to perform a rather simple task. Starting with a simple ASCII string I need to

- find its length
- convert the length into 2 hex bytes.

my $string = "39860000NO00"; my $length = length($string);
I need to convert the length (12) to the string "\x00\x0c"
any help will be greatly appreciated.