Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Is it possible to find the number of matching and non-matching positions in strings using perl code?

by supriyoch_2008 (Scribe)
on May 10, 2012 at 16:36 UTC ( #969839=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!usr/bin/perl-w
    use strict;
    my $a=AAATGCCTT;
    ...
    print"\n   No. of matched positions=$match.\n
           No. of non-matched positions=$nonmatch.\n";
    exit;
    
  2. or download this
    No. of matched positions=3.
    No. of non-matched positions=6.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://969839]
Approved by marto
Front-paged by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-12-29 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls