| Iterador |
use Iterador;
my $iter = Iterador->new( \@my_data );
while (my $token = $iter->next()) {
1;
}
El módulo Iterador crea un objeto que permite iterar sobre una lista de
valores.
Es un trabajo derivado de the Basicos::Base::Iterador manpage y está pensado, inicialmente, para usar una tabla en memoria como fuente.
Retorna el elemento actual del iterador.
Retorna el primer elemento del iterador.
Retorna todos los elementos del iterador, en orden ascendente.
Posiciona el iterador en el enésimo elemento.
Retorna el último elemento del iterador.
Retorna el siguiente elemento ó un valor nulo si no hay más.
Retorna el elemento anterior ó un valor nulo si el iterador está en el primero.
Reinicializa el iterador volviendo al valor inicial.
Retorna el tamaño de la lista de datos en número de elementos.
A list of every error and warning message that the module can generate.
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.
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.
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).
There are no known bugs in this module. Please report problems to <Maintainer name(s)> (<contact address>). Patches are welcome.
Víctor Moral <victor@taquiones.net>, Angel Ortega <angel@triptico.com>
Copyright (c) 2005 <Venexma Europa, S.L.>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
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.
| Iterador |