in reply to Hex delimiter

A backslashed x followed by one or two hex digits will match it: my @records = split(/\x12/, $input); You can also use that in a regex.