packetstormer has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
As a newbie I can see that you enter and range in an array as follows:
@array = (1..100);
This should create an array from 1 to 100 inclusive. Is there anyway to create the same type of array with decimal values? e.g
@array = (5.01..12.00) I am really trying to do this with time ranges, say from 1pm to 11pm but not sure that is possible either.
@array = (1..100);
This should create an array from 1 to 100 inclusive. Is there anyway to create the same type of array with decimal values? e.g
@array = (5.01..12.00) I am really trying to do this with time ranges, say from 1pm to 11pm but not sure that is possible either.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Decimal Array range
by BrowserUk (Patriarch) on Dec 21, 2010 at 10:49 UTC | |
Re: Decimal Array range
by bart (Canon) on Dec 21, 2010 at 13:02 UTC | |
by Gulliver (Monk) on Dec 21, 2010 at 20:50 UTC | |
by bart (Canon) on Dec 22, 2010 at 12:12 UTC | |
Re: Decimal Array range
by Anonymous Monk on Dec 21, 2010 at 10:42 UTC | |
Re: Decimal Array range
by thargas (Deacon) on Dec 21, 2010 at 12:58 UTC | |
Re: Decimal Array range
by sundialsvc4 (Abbot) on Dec 21, 2010 at 16:09 UTC | |
Re: Decimal Array range
by ikegami (Patriarch) on Dec 21, 2010 at 18:14 UTC | |
Re: Decimal Array range
by Anonymous Monk on Dec 21, 2010 at 18:10 UTC |
Back to
Seekers of Perl Wisdom