Help for this page

Select Code to Download


  1. or download this
    my $str = "foo.bar";
    if ($str =~ /\./) {
        print "Contains a period.\n";
    }
    
  2. or download this
    (split(/[a-zA-Z]+(.[a-zA-Z]*)*)/, @$contentString))
    
  3. or download this
    my @words = @$contentString =~ /([\w.]+)/g;