Vito Corleone <> wrote in
news:20050311124630.147f7c68.vito_corleone@godfath er.com:
> I want to wrap that, so I can write it like below:
> ## with_wrapper.pl
> use Item;
> my $it = Item::->new();
> my $obj = $it->get_items(); ## This return $sth in wrapped form
> while (my $item = $obj->each()) {
> print $item->member_id();
> print $item->item_name();
> ## etc
> }
>
> How should I write Item.pm, so it can be used as the wrapper above?
I think you are looking for Class

BI. Search CPAN for it.
Sinan