Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Decimal Array rangeby packetstormer (Monk) |
on Dec 21, 2010 at 10:33 UTC ( [id://878210]=perlquestion: print w/replies, xml ) | Need Help?? |
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.
Back to
Seekers of Perl Wisdom
|
|