$loc = index($rec, $HexValue); OR @sub_field1 = split(/$HexValue/, $rec);
Where the $HexValue is either a variable that contains my hex'01' or the absolute value itself.
The chr function returns the character with a given ASCII (or Unicode) value and you can use \x01 inside of double-quoted strings, so e.g. to have a space, you could write:
$char = chr 32; # decimal $char = chr 0x20; # hexadecimal $char = "\x20"; # hexadecimal $char = "\040"; # octal $HexValue = v32; # decimal or $string = "abc\x{20}def 123\x{20}456"; etc.
Is that what you need?
Take a look at perldata manpage: http://www.perldoc.com/perl5.6/pod/perldata.html#Scalar-value-constructors
and Quote and Quote-like Operators in perlop manpage: http://www.perldoc.com/perl5.6/pod/perlop.html#Quote-and-Quote-like-Operators
-zsdc.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]