Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by nbezzala (Scribe)
on Apr 12, 2012 at 16:07 UTC ( [id://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

Replies are listed 'Best First'.
Re^3: Matching or masking specific characters in an array of strings
by jdporter (Paladin) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://964777]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found