Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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: (5)
As of 2016-09-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (470 votes). Check out past polls.