RE: Problem dynamically sign array a name

2006-10-02 Thread Shiping Wang
Hi Charles, At 17:18 2006-9-29, Charles K. Clarkson wrote: Shiping Wang wrote: : Yes, but it start @P = 0 .. 89; I might use the any() function available in List::MoreUtils. I try to avoid flag like the plague. use List::MoreUtils 'any'; my @P = ( 0.06, 0.04, 0.98, 0.12, 0.02, 0.

RE: Problem dynamically sign array a name

2006-09-29 Thread Charles K. Clarkson
Shiping Wang wrote: : Yes, but it start @P = 0 .. 89; I might use the any() function available in List::MoreUtils. I try to avoid flag like the plague. use List::MoreUtils 'any'; my @P = ( 0.06, 0.04, 0.98, 0.12, 0.02, 0.98, 0.11, 0.25, 0.36, 0.01, 0.01, 0.01, 0.02, 0.01,

Re: Problem dynamically sign array a name

2006-09-29 Thread Mumia W.
On 09/29/2006 02:24 PM, Shiping Wang wrote: Hi Charles, At 13:08 2006-9-29, Charles K. Clarkson wrote: Shiping Wang wrote: : Hi, I have a big array, I need re-arrange it then put into sub : array, after that do something on each sub array. How do you want to split it into sub arrays? Like

RE: Problem dynamically sign array a name

2006-09-29 Thread Shiping Wang
At 16:22 2006-9-29, Charles K. Clarkson wrote: Shiping Wang wrote: According to the code you provided, you are breaking up the large array into smaller arrays like this: print "Large array values become these subarrays:\n\n"; my @P = 1 .. 90; foreach my $i ( 0 .. 9 ) { print "\t[";

RE: Problem dynamically sign array a name

2006-09-29 Thread Charles K. Clarkson
Shiping Wang wrote: According to the code you provided, you are breaking up the large array into smaller arrays like this: print "Large array values become these subarrays:\n\n"; my @P = 1 .. 90; foreach my $i ( 0 .. 9 ) { print "\t["; foreach my $value ( $P[$i], @P[8*$i+10 .. 8*$i+

RE: Problem dynamically sign array a name

2006-09-29 Thread Shiping Wang
Hi Charles, At 13:08 2006-9-29, Charles K. Clarkson wrote: Shiping Wang wrote: : Hi, I have a big array, I need re-arrange it then put into sub : array, after that do something on each sub array. How do you want to split it into sub arrays? Like items, number of items, random items, ...?

Re: Problem dynamically sign array a name

2006-09-29 Thread Mumia W.
On 09/29/2006 11:49 AM, Shiping Wang wrote: Hi, I have a big array, I need re-arrange it then put into sub array, after that do something on each sub array. I have a problem to dynamically give sub array a name. Any help? Maybe I should use anonymous array? Thanks, Shiping Here is my code:

RE: Problem dynamically sign array a name

2006-09-29 Thread Charles K. Clarkson
Shiping Wang wrote: : Hi, I have a big array, I need re-arrange it then put into sub : array, after that do something on each sub array. How do you want to split it into sub arrays? Like items, number of items, random items, ...? : Here is my code: [snip] It is really hard to tell what

Re: Problem dynamically sign array a name

2006-09-29 Thread John W. Krahn
Shiping Wang wrote: > Hi, Hello, > I have a big array, I need re-arrange it then put into sub array, > after that do something on each sub array. I have a problem to > dynamically give sub array a name. Any help? Maybe I should use > anonymous array? It looks like you may need a Hash of Arrays.