rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to create the following array of arrays:# First array # This array could contain any number of items my @firstArray = ( "item1", "item2", "item3" );
Does anyone know how to do this?# Results array my @results = ( [ "item1" ], [ "item2" ], [ "item3" ], [ "item1", "item2" ], [ "item1", "item3" ], [ "item2", "item3" ], [ "item1", "item2", "item3" ] ); # Note: [ "item1", "item2" ] & [ "item2", "item1" ] # should be considered as the same.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array logic
by muntfish (Chaplain) on Sep 02, 2004 at 10:46 UTC | |
by rsiedl (Friar) on Sep 02, 2004 at 11:06 UTC | |
|
Re: array logic
by ysth (Canon) on Sep 02, 2004 at 14:34 UTC | |
|
Re: array logic
by rupesh (Hermit) on Sep 02, 2004 at 10:29 UTC |