Does anyone have any suggestions on how to create an array to hold the value
of 1000 factorial?
I'm afraid I don't understand your question. An array holds multiple values, but 1,000 factorial is a single value. You want an array to hold all the numbers used to calculate it?
my @factors = ( 1..1000 );
We could then calculate the answer with:
my $factorial = 1; $factorial *= $_ foreach @factors;
It's probably easier to leave out to array though:
my $factorial = 1; $factorial *= $_ foreach 1..1000;
Any of this helping you?
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]