Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Generating powerset with progressive ordering

by fizbin (Chaplain)
on Feb 25, 2005 at 19:43 UTC ( #434625=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       for ($str) {
         s/0(0*)$/1$1/
         or s/1(0*)1$/01$1/
         or return;
       }
    
  2. or download this
    sub nextmask {
         if ($_[0] =~ s/0(0*)$/1$1/) {1;}
    ...
                         0 .. $#factors;
      print "\n";
    }
    
  3. or download this
    --
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-09-03 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (127 votes), past polls