Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Substitution of a particular letter in all combinations of positions in word (see inside)

by LanX (Canon)
on Jan 09, 2013 at 13:08 UTC ( #1012479=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<182> $s=join '{e,a}',split /e/,"ferber"
     => "f{e,a}rb{e,a}r"
    
      DB<183> @a=< $s >
     => ("ferber", "ferbar", "farber", "farbar")
    
  2. or download this
      DB<192> @a=glob(join '{e,a}',split /e/,"ferber")
     => ("ferber", "ferbar", "farber", "farbar")
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-09-17 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls