Re: Switch, Ranges and Memory

2006-08-29 Thread John W. Krahn
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

Re: Switch, Ranges and Memory

2006-08-29 Thread Tom Phoenix
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

Switch, Ranges and Memory

2006-08-29 Thread Barron Snyder \(CE CEN\)
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