Help for this page

Select Code to Download


  1. or download this
    use Set::Scalar;
    $s = Set::Scalar->new;
    $s->insert('a', 'b');
    $s->delete('b');
    $t = Set::Scalar->new('x', 'y', $z);
    
  2. or download this
        $u = $s->union($t);
        $i = $s->intersection($t);
    ...
        $e = $s->symmetric_difference($t);
        $v = $s->unique($t);
        $c = $s->complement;