If you are reading a filehandle with
readline, and
$/ is defined and contains a string, then the effect is like splitting the incoming data into chunks ending with that string. If that string is not encountered, then there is returned only one chunk.