NAME

Iterator::BreakOn::DataSource - Wrapper for extensions of Iterator::BreakOn

SYNOPSIS

    package Iterator::BreakOn::MyFormat;
    use base qw(Iterator::BreakOn::Base);

    use Iterator::BreakOn::DataSource;

    sub new {
        my  $class  =   shift;
        my  %params =   @_;

        my $dh = Iterator::BreakOn::DataSource->new(
                      code_for_next => \&_my_next_item 
                      );
        my  $self   =   $class->SUPER::new( %params, datasource => $dh );

        return $self;                                
    }

    sub _my_next_item {
        my  $self   =   shift;      # discard or not

        # do something for get a next item

        # and return it
        return $my_next_item;       # object reference with a get method
    }

DESCRIPTION

WARNING This is experimental code

This module provides an auxiliary mechanism for those data sources not object oriented but we need use with Iterator::BreakOn.

SUBRUTINES/METHODS

new( )

next( )

DIAGNOSTICS

A list of every error and warning message that the module can generate.

CONFIGURATION AND ENVIRONMENT

A full explanation of any configuration system(s) used by the module, including the names and locations of any configuration files, and the meaning of any environment variables or properties that can be set. These descriptions must also include details of any configuration language used.

DEPENDENCIES

A list of all the other modules that this module relies upon, including any restrictions on versions, and an indication of whether these required modules are part of the standard Perl distribution, part of the module's distribution, or must be installed separately.

INCOMPATIBILITIES

A list of any modules that this module cannot be used in conjunction with. This may be due to name conflicts in the interface, or competition for system or program resources, or due to internal limitations of Perl (for example, many modules that use source code filters are mutually incompatible).

BUGS AND LIMITATIONS

There are no known bugs in this module. Please report problems to <Maintainer name(s)> (<contact address>). Patches are welcome.

AUTHOR

Víctor Moral <victor@taquiones.net>

LICENSE AND COPYRIGHT

Copyright (C) 2007 <Victor Moral>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 175:

Non-ASCII character seen before =encoding in 'Víctor'. Assuming UTF-8