Hi everyone,
Working with a .wav file, I get one of these values "\x00" and "\x00\x1b" which looks like
hexadecimal characters.
I tried sprintf, unpack, ord but I have no idea what I'm doing.
can anybody tell me how to interpret these values.
Not sure what you're asking. If you some how have a string containing the literal \x00 (as opposed to the equivelant escape sequence), then you can translate it by removing the backslash and passing it to the hex() function. If you have a string with an escape sequence, I can't think why you would need to translate it, but you would basically do something like (untested):
my $str = blah; my @str = unpack( 'c' x length($str), $str );
# @str now contains the decimal value (ord) of each character in $str
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>