Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Generating powerset with progressive ordering

by fizbin (Chaplain)
on Feb 25, 2005 at 19:43 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://434625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-03-29 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found