Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: string match using with an N in any position

by BrowserUk (Patriarch)
on Nov 18, 2011 at 05:03 UTC ( [id://938741]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $matched = ( 'GCGAT' ^ 'GNGAT' ) =~ tr[\0][\0];
    
  2. or download this
    $xord = 'GCGAT' ^ 'GNGAT';;
    
    print unpack 'C*', $xord;;
    0 13 0 0 0
    
  3. or download this
    $matched = ( 'GCGAT' ^ 'GNGAT' ) =~ tr[\0][\0];;
    
    print $matched;;
    4
    
  4. or download this
    if(  $matched >= ( length( $q ) -1 ) ) {
        ## we have a winner
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found