Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Detect STX and ETX hex in received string

by space_monk (Chaplain)
on Nov 28, 2012 at 15:18 UTC ( #1006046=note: print w/ replies, xml ) Need Help??


in reply to Detect STX and ETX hex in received string

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.


Comment on Re: Detect STX and ETX hex in received string

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006046]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (16)
As of 2015-07-01 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (12 votes), past polls