Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: having fun with RE - was: Re: One Zero variants_without_repetition

by wind (Priest)
on Aug 13, 2007 at 18:46 UTC ( #632288=note: print w/ replies, xml ) Need Help??


in reply to having fun with RE - was: Re: One Zero variants_without_repetition
in thread One Zero variants_without_repetition

Using the same algorithm approach, but reversing the output:

$_ = "11100"; do { print "$_\n"; } while ( s/(.*)10(0*)(1*)/${1}01$3$2/ ); 11100 11010 11001 10110 10101 10011 01110 01101 01011 00111
- Miller


Comment on Re: having fun with RE - was: Re: One Zero variants_without_repetition
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-07-05 03:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls