in reply to Counting bytes in an input stream instead of a file

What is the serial module that you are using and on what OS? If $ob is the serial object, can you not simply pull the first n characters out of it? At some point surely you end with a string or array of characters that you can process piecemeal?

Show us a little more code.


DWIM is Perl's answer to Gödel
  • Comment on Re: Counting bytes in an input stream instead of a file