Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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

Replies are listed 'Best First'.
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?
[Discipulus]: ah this is another interesting point: how to know if a module is or is not thread safe?
[Discipulus]: .. sorry mario if i'm bothering you at 5:46
[choroba]: Some modules mention their thread safety in the documentation
[choroba]: if they don't, it's safer to asume they aren't safe
[Discipulus]: maybe one day i'll ask is sopw: like a 9 prove for thread safety will be good

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-09-22 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?