Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How can I improve this?

by lhoward (Vicar)
on Jul 25, 2000 at 07:12 UTC ( #24236=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @bar=sort {zc($a) <=> zc($b)} 
          permute([0..2],[0..2],[0..2],[0..2],[0..2]);
    ...
      return (grep /0/,@a[0..1])+(grep /0/,@a[3..4]);
    }
    
  2. or download this
    push @list,permute(nz($a),nz($b),$c,nz($d),nz($e));
    push @list,permute([0],nz($b),$c,nz($d),nz($e));
    ...
    push @list,permute(nz($a),nz($b),$c,nz($d),[0]);
    push @list,permute([0],[0],$c,nz($d),nz($e));
    etc...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-08-21 05:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls