XP is just a number | |
PerlMonks |
Re^2: Next from inner loop only works "most of the time"by Marshall (Canon) |
on May 20, 2021 at 07:41 UTC ( [id://11132758]=note: print w/replies, xml ) | Need Help?? |
Good questions! A version of the full code using labeled next is posted at Re^2: Next from inner loop only works "most of the time". I actually first thought that there was some problem in the hashes. So I added some debug code to look at that issue. You can see what I did.
I saw the error and then added debug stuff. That's why the You will see how I generated the regex. I did this in a straightforward way. My way generates some results that are not valid, but it was very easy to do while "hacking". Taking out a few extraneous results seemed to be a good way to go at the time. And it still seems like a good idea. A completely optimal regex is not necessary here. I made the interface so that I type in exactly the list of letters the puzzle presents. If there are 2 "e"'s, I type in 2 "e"'s.
In Section
Seekers of Perl Wisdom
|
|