|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Detect STX and ETX hex in received stringby space_monk (Hermit) |
| on Nov 28, 2012 at 15:18 UTC ( #1006046=note: print w/ replies, xml ) | Need Help?? |
|
I'm not sure this is an answer, perhaps a question for other Perk Monks. :-) I'm not convinced that a regex is the way to go here, as I suspect the code should really just start accumulating data on detecting a STX and send it to the output on reaching 80 chars or an ETX. Adding regex detection seems, to me, to be adding a lot of overhead.
A Monk aims to give answers to those who have none, and to learn from those who know more.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||