Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 contemplating the Monastery: (3)
As of 2014-09-18 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls