The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Palm::Timesheet::List - A generic list class.

SYNOPSIS

package Palm::Timesheet::SomeList;
use strict;
use base qw ( Palm::Timesheet::List );

...

1;

DESCRIPTION

A generic list class, primarily for subclassing.

new

Constructor ...

my $l = Palm::Timesheet::List->new( @stuff );
get_size

Returns size of list.

push( @stuff )

Push stuff on list.

pop

Pop last element from list.

delet( $name )

Delete a named item from list.

get_element( $index )

Return element at $index.

each

Iterator .. used as in ...

while ( my $item = $list->each ) {
	do_something_with( $item );
}

COPYRIGHT

Copyright (c) 2001, Johan Van den Brande. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.