Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Masking part of a string

by ferreira (Chaplain)
on Jun 27, 2007 at 19:44 UTC ( [id://623720]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $mask = '001111100';
    my $str  = 'AGACGAGTA';
    ...
    my $masked = join '', pairwise { $a ? 'x' : $b } @mask, @str;
    
    print "Masked: $masked\n";
    
  2. or download this
    my $mask = '001111100';
    my $str  = 'AGACGAGTA';
    ...
    }
    
    print "Masked: $masked\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found