DynGig::Range::Integer - Integer set arithmetics.
use DynGig::Range::Integer; my @list = DynGig::Range::Integer->expand( '3,4~9,-6~7,&6~10' ); my $string = DynGig::Range::Integer->serial( '3', '6', '7~9' ); my $r1 = DynGig::Range::Integer->new( '3', '6', '7~9' ); my $r2 = DynGig::Range::Integer->new( '3,6~7' ); my $r3 = DynGig::Range::Integer->new( '3,4~9,-6~7,&6~10' ); my $r4 = $r2 - $r3; my $r5 = $r2 + $r3; my @r5 = $r5->list(); $r5 &= $r1; print $r5, "\n";
Overloads "".
Implements DynGig::Range::Integer::Object and DynGig::Range::Integer::Parse. See DynGig::Range::Integer::Object for additional methods.
See DynGig::Range
To install DynGig::Range, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DynGig::Range
CPAN shell
perl -MCPAN -e shell install DynGig::Range
For more information on module installation, please visit the detailed CPAN module installation guide.