# phpman > perldoc > MIME::Parser::Reader

## NAME
    [MIME::Parser::Reader](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3AParser%3A%3AReader/markdown) - a line-oriented reader for a [MIME::Parser](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3AParser/markdown)

## SYNOPSIS
    This module is used internally by [MIME::Parser](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3AParser/markdown); you probably don't need to be looking at it at
    all. But just in case...

        ### Create a top-level reader, where chunks end at EOF:
        $rdr = [MIME::Parser::Reader](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3AParser%3A%3AReader/markdown)->new();

        ### Spawn a child reader, where chunks also end at a boundary:
        $subrdr = $rdr->spawn->add_boundary($bound);

        ### Spawn a child reader, where chunks also end at a given string:
        $subrdr = $rdr->spawn->add_terminator($string);

        ### Read until boundary or terminator:
        $subrdr->read_chunk($in, $out);

## DESCRIPTION
    A line-oriented reader which can deal with virtual end-of-stream defined by a collection of
    boundaries.

    Warning: this is a private class solely for use by [MIME::Parser](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3AParser/markdown). This class has no official
    public interface

## SEE ALSO
    [MIME::Tools](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3ATools/markdown), [MIME::Parser](https://www.chedong.com/phpMan.php/perldoc/MIME%3A%3AParser/markdown)

