http://www.perlmonks.org?node_id=1006029


in reply to Re: Detect STX and ETX hex in received string
in thread Detect STX and ETX hex in received string

It appears that your solution only allows for a single-character STX or ETX token, due to the check for character classes (eg [$STX]). I am presently experiencing too much of a coffee deficiency to offer an alternative.

Update: ... and to not recognize that STX and ETX are possibly symbols for one character tokens :-)

--MidLifeXis