Barron Snyder (CE CEN) wrote:
> When using the range operator, is the list actually created with all the
> elements?
It depends. :-) In general, yes it does. See the "Range Operators" section
of perlop:
perldoc perlop
> For example, if I create a list like (123..456754), does it take up the
On 8/29/06, Barron Snyder (CE CEN) <[EMAIL PROTECTED]> wrote:
For example, if I create a list like (123..456754), does it take up the
same amount of memory as if I actually entered all those in between
numbers?
Generally, yes.
I'm asking because I want to use ranges in a switch statement and
When using the range operator, is the list actually created with all the
elements?
For example, if I create a list like (123..456754), does it take up the
same amount of memory as if I actually entered all those in between
numbers?
I'm asking because I want to use ranges in a switch statement