Boldra has asked for the wisdom of the Perl Monks concerning the following question:
So, is there a CPAN module that can create the combinations for us? Or an enthusiastic Monk?$/ = ';'; @paths = <DATA>; foreach my $combination_listref ( &combinations_of( { min_length => 1, + max_length => 5, elements => \@paths }) ) { my @paths = @{$combination_listref}; &test_using_paths(@paths) and say 'SUCCESS WITH ' . scalar (@paths) . ' paths : ' . join +(';', @paths) } __DATA__ D:\opt\tbq\J2E\JC00\exe\jenqulib.jar;D:\opt\tbq\J2E\JC00\exe\jlogunzip +.jar;D:\opt\tbq\J2E\JC00\exe\jperflib.jar;D:\opt\tbq\J2E\JC00\exe\jst +artup.jar;D:\opt\tbq\J2E\JC00\exe\jstartupapi.jar;D:\opt\tbq\J2E\JC00 +\exe\jstartupimpl.jar;D:\opt\tbq\J2E\JC00\exe\servicehttp\tbqmc\frog. +jar;D:\opt\tbq\J2E\JC00\exe\servicehttp\tbqmc\tbqmc.jar;D:\opt\tbq\J2 +E\JC00\exe\servicehttp\tbqmc\tbqmcsoap.jar;D:\opt\tbq\J2E\JC00\exe\se +rvicehttp\tbqmc\tbqmcswing.jar;D:\opt\tbq\J2E\JC00\exe\servicehttp\tb +qmc\soapclient.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\go.jar;D:\opt\tbq\J +2E\JC00\j2ee\admin\launcher\jaas.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\l +ib\admin.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\bytecode.jar;D:\opt\t +bq\J2E\JC00\j2ee\admin\lib\compilation_lib.jar;D:\opt\tbq\J2E\JC00\j2 +ee\admin\lib\com_tbq_pj_jmx.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\co +nnector.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\ejb20.jar;D:\opt\tbq\J +2E\JC00\j2ee\admin\lib\exception.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\l +ib\iq-lib.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\jARM.jar;D:\opt\tbq\ +J2E\JC00\j2ee\admin\lib\jARMSat.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\li +b\jaxrpc-api.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\jcert.jar;D:\opt\ +tbq\J2E\JC00\j2ee\admin\lib\jmonapi.jar;D:\opt\tbq\J2E\JC00\j2ee\admi +n\lib\jms.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\jnet.jar;D:\opt\tbq\ +J2E\JC00\j2ee\admin\lib\jsse.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\j +startupapi.jar;D:\opt\tbq\J2E\JC00\j2ee\admin\lib\jstartupimpl.jar;D: +\opt\tbq\J2E\JC00\j2ee\admin\lib\jta.jar;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: permutations and combinations - too many java class paths!
by ELISHEVA (Prior) on Mar 03, 2009 at 15:05 UTC | |
|
Re: permutations and combinations - too many java class paths!
by tilly (Archbishop) on Mar 03, 2009 at 15:32 UTC | |
|
Re: permutations and combinations - too many java class paths!
by almut (Canon) on Mar 03, 2009 at 15:04 UTC | |
|
Re: permutations and combinations - too many java class paths!
by bellaire (Hermit) on Mar 03, 2009 at 15:22 UTC |