in reply to Stream delimiting chars

Not telling you much you don't know, eh? I guess you can take this as being a confirmation of what you already suspect.

Be that as it may, as far as modules are concerned, this is dreadfully easy to put together with a bit of encoding and decoding via pack/unpack.

--
g r i n d e r

Replies are listed 'Best First'.
Re: Re: Stream delimiting chars
by jepri (Parson) on Sep 13, 2001 at 20:49 UTC
    Yep. Variable length binary data. Looking at pack it seems uuencoding is the easiest. Shame it's not the most efficient.

    Thanks.

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.

      Just use "\n" as your end-of-record character (so you can use <SOCK>, even though it is often a bad idea) and do s/([\n\\])/\\$1/g before sending and s/\\./"n"eq$1?"\n":$1/ge; after you receive it.

              - tye (but my friends call me "Tye")