Chris Williams > POE-Filter-ParseWords-1.06 > POE::Filter::ParseWords

Download:
POE-Filter-ParseWords-1.06.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.06   Source  

NAME ^

POE::Filter::ParseWords - A POE-based parser to parse text into an array of tokens.

SYNOPSIS ^

    use POE::Filter::ParseWords;

    my $filter = POE::Filter::ParseWords->new();
    my $arrayref = $filter->get( [ $line ] );

DESCRIPTION ^

POE::Filter::ParseWords provides a convenient way to parse text into an array of tokens. It is a wrapper for the module Text::ParseWords.

A more comprehensive demonstration of the use to which this module can be put to is in the examples/ directory of this distribution.

CONSTRUCTOR ^

new

Creates a new POE::Filter::ParseWords object. Takes two optional arguments:

  'delim', specify a delimiter, default is '\s+';
  'keep', specify whether other characters are kept or not, default is false;

METHODS ^

get
get_one_start
get_one

Takes an arrayref which is contains lines of text. Returns an arrayref of lists of tokenised output.

put

This is not implemented.

clone

Makes a copy of the filter, and clears the copy's buffer.

AUTHOR ^

Chris BinGOs Williams

LICENSE ^

Copyright © Chris Williams

This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details.

SEE ALSO ^

POE

Text::ParseWords

POE::Filter

POE::Filter::Line

POE::Filter::Stackable

syntax highlighting: