I have a series of strings made up of two-byte data - (typical of CommPort communication: Command Word, length, text, "hex" values) Like this: 8602353907455755 ... I want to pull out the '86' and the '02' and the '35', etc., and put them into an array of bytes or something similar.
I've looked at "split". It seems to revolve around the use of Regular Expressions (of which I know less than I know about Perl) to determine delimiters (which I don't have).
Is there a function or operator within Perl that I can wrangle to perform the task?
Thanks.
In reply to Pulling bytes out of string by mike65535
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |