The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Form::Toolkit::KVPairs - An abstract source of Key Value Pairs.

size

Gives the size of the Key Value Pairs set.

Usage:

  there is $this->size() key-value pairs in this Set.

lookup

Looks up the key in the Set and return undef if not found, or the value.

usage:

  if( my $value = $this->lookup($key) ){

  }

next_kvpair

Returns () or the next ( key => value ) tuple of this set. Calling that turns this source into an iterator.

So you can do:

while( my @kv = $this->next_kvpair() ){ print "Key,value: ".join(',' , @kv); }