in reply to Python to perl: itertools product to replace a char in string in each possible position

Do you really need the python yield ?

Then you will need to construct an iterator.

Not sure what your list comprehension does, its hard to read.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: Python to perl: itertools product to replace a char in string in each possible position
  • Download Code