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.
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,
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
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[";
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+
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, ...?
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:
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
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.