in reply to How to split by character ?

perldoc -f unpack

Also you can read Pack/Unpack Tutorial

Replies are listed 'Best First'.
Re^2: How to split by character ?
by Fletch (Bishop) on Jul 22, 2008 at 03:26 UTC

    See also read and/or substr which will help you get the records to pass to unpack; also of interest might be the documentation for $/ about setting it to a reference to a number (e.g. in your example $/ = \128) in order to use the normal diamond operator to read records rather than lines.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.