@matches = ("foo" =~ /o?/g); my @chars = split //, "foo";