Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Matching or masking specific characters in an array of strings

by nbezzala (Scribe)
on Apr 12, 2012 at 16:07 UTC ( #964777=note: print w/ replies, xml ) Need Help??


in reply to Re: Matching or masking specific characters in an array of strings
in thread Matching or masking specific characters in an array of strings

Can someone please explain what is happening here? I'm wondering why a solution like this isn't mentioned in this thread - $w =~ s/^aeiou/-/g;


Comment on Re^2: Matching or masking specific characters in an array of strings
Re^3: Matching or masking specific characters in an array of strings
by jdporter (Canon) on Apr 12, 2012 at 16:46 UTC

    They're not talking about "masking away" characters from a given character set in a single string. They're talking about masking multiple strings together in order find out which characters those strings have in common. Hence:

    
      southern
    - yourself
    ----------
      -ou--e--
    
    

    (where - (minus) is the masking operation.)

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-11-28 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (193 votes), past polls