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

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

by LanX (Chancellor)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2016-12-03 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (60 votes). Check out past polls.