PNI::Set - is a set of elements
my $set = PNI::Set->new; my $elem1 = PNI::Elem->new; $set->add($elem1); my $elem2 = PNI::Elem->new; $set->add($elem2); $set->list; # ($elem1,$elem2)
Hash of elements.
Minimum number of elements: default is 0.
Maximum number of elements: default is 0, which means infinity otherwise it would be the empty set.
my @elems = $set->list; my $num_elems = scalar( $set->list );
To install PNI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PNI
CPAN shell
perl -MCPAN -e shell install PNI
For more information on module installation, please visit the detailed CPAN module installation guide.