Christopher H. Laco > Handel-0.32 > Handel::Iterator

Download:
Handel-0.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Handel-1.00011

NAME ^

Handel::Iterator - Iterator class used for collection looping

SYNOPSIS ^

    use Handel::Cart;

    my $cart = Handel::Cart->new({
        shopper => 'D597DEED-5B9F-11D1-8DD2-00AA004ABD5E'
    });

    my $iterator = $cart->items;
    while (my $item = $iterator->next) {
        print $item->sku;
        print $item->price;
        print $item->total;
    };

DESCRIPTION ^

Handel::Iterator is used internally by Handel::Cart to iterate through collections of carts and cart items. At this point, there should be no reason to use it directly.

SEE ALSO ^

Handel::Cart

AUTHOR ^

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/