MYDan::Node::KeySet - KeySet implementation
use MYDan::Node::KeySet; my @a = qw( foo foo1 bar1 baz1 ); my $a = MYDan::Node::KeySet->new()->load( \@a ); my %b = ( foo => 1, foo2 => 1, bar2 => 1, baz2 => 1 ); my $b = $a->new()->load( \%b ); my $c = $a->new()->load( 'foo1', 'foo3' ); my $d = $a->new()->load( $c ); $a->add( $b ); $b->subtract( qr/foo/ ); $c->intersect( \%b ); print $a->dump( range => '..' ), "\n";
range : '~' list : ',' null : '$'
Returns a list of elements of a supported object.
Loads from a supported object, or a pair of delimiting elements that indicate a contiguous range. Symbols may be redefined in %symbol.
Serializes to a range expression. Symbols may be redefined in %symbol.
Returns a list of elements.
Determines if object contains element.
( These methods modify the invoking object. )
Adds a supported object to object.
Subtracts a supported object from object.
Intersects with a supported object.
Takes symmetric difference with a supported object.
X with a supported object.
ARRAY, HASH, another object, and for arithmetic methods, Regexp.
To install MYDan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MYDan
CPAN shell
perl -MCPAN -e shell install MYDan
For more information on module installation, please visit the detailed CPAN module installation guide.