Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Which Permute or other module can give me all possible subsets of 6 numbers out of 40?

by tybalt89 (Monsignor)
on Apr 11, 2018 at 13:28 UTC ( [id://1212682]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Which Permute or other module can give me all possible subsets of 6 numbers out of 40?
in thread Which Permute or other module can give me all possible subsets of 6 numbers out of 40?

Because the print returns 1, and we need the (??{...}) block to return something that does not match, to cause the regex engine to backtrack.

  • Comment on Re^3: Which Permute or other module can give me all possible subsets of 6 numbers out of 40?

Replies are listed 'Best First'.
Re^4: Which Permute or other module can give me all possible subsets of 6 numbers out of 40?
by choroba (Cardinal) on Apr 11, 2018 at 13:33 UTC
    Of course! I was blind. I solved a similar issue years ago, but I used the FAIL as I couldn't choose what characters would be involved. Here, it would be (note that (?{}) is used):
    ($digit x $from) =~ /^$pattern(?{print "@+[1 .. $draw]\n"})(?!)/;
    And it works for $digit = 1, too.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found