Form::Toolkit::KVPairs - An abstract source of Key Value Pairs.
Gives the size of the Key Value Pairs set.
Usage:
there is $this->size() key-value pairs in this Set.
Looks up the key in the Set and return undef if not found, or the value.
usage:
if( my $value = $this->lookup($key) ){ }
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); }
To install Form::Toolkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Toolkit
CPAN shell
perl -MCPAN -e shell install Form::Toolkit
For more information on module installation, please visit the detailed CPAN module installation guide.