POE::Filter::Line - convert between line- and stream-based IO
$line = new POE::Filter::Line(); $line_with_crlf = $line->put("A line of text."); $lines = $line->get("One\x0DTwo\x0AThree\x0D\x0AFour\x0A\x0DFive"); print join(':', @$lines), "\n";
Breaks up a stream into lines, based on any permutation of CR/LF. Appends CR/LF to the ends of lines being sent.
Please see POE::Filter for explanations.
POE::Filter
Please see tests/selects.perl for examples of POE::Filter::Line.
POE::Filter::Line
None known.
Copyright 1998 Rocco Caputo <troc@netrus.net>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install POE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE
CPAN shell
perl -MCPAN -e shell install POE
For more information on module installation, please visit the detailed CPAN module installation guide.