Help for this page

Select Code to Download


  1. or download this
    my $s = Set::Scalar->new('a','b','c(d)');
    
    print $s->has('a'); # returns true
    
  2. or download this
    my $s = Set::Scalar->new('a','b','c(d)');
    
    if($s->has(/c\((.+)\)/)) {
      print $1;           # prints 'd'
    }