Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 perusing the Monastery: (8)
As of 2014-07-12 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls