++ed by:
SYSPETE HORNBURG

2 PAUSE users
3 non-PAUSE users.

Stefan Hornburg (Racke)

NAME

Template::Flute::Iterator - Generic iterator class for Template::Flute

SYNOPSIS

$cart = [{isbn => '978-0-2016-1622-4', title => 'The Pragmatic Programmer', quantity => 1}, {isbn => '978-1-4302-1833-3', title => 'Pro Git', quantity => 1}, ];

$iter = new Template::Flute::Iterator($cart);

while ($record = $iter->next()) { print "Title: " . $record->title(); }

CONSTRUCTOR

new

METHODS

next

Returns next record or undef.

count

Returns number of elements.

reset

Resets iterator.

AUTHOR

Stefan Hornburg (Racke), <racke@linuxia.de>

LICENSE AND COPYRIGHT

Copyright 2010-2011 Stefan Hornburg (Racke) <racke@linuxia.de>.

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

See http://dev.perl.org/licenses/ for more information.