Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Mismatch Positions of Ambiguous String

by hv (Prior)
on Apr 27, 2006 at 10:16 UTC ( [id://545996]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub mismatches {
      my($source, $target) = @_;
    ...
      my %seen = map +($_ => 1), $s =~ /[^\[\]]/g;
      scalar grep $seen{$_}, $t =~ /[^\[\]]/g;
    }
    
  2. or download this
    my %bits = ('A' => 1, 'C' => 2, 'G' => 4, 'T' => 8);
    my $source1 = bitwise('[TCG]GGGG[AT]');
    ...
        chr($char)
      } $string =~ /(\[.*?\]|.)/g;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://545996]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found