Re: Incrementing letters in for loop

2010-04-15 Thread C.DeRykus
On Apr 14, 5:22 am, shawnhco...@gmail.com (Shawn H Corey) wrote: > C.DeRykus wrote: > > And, here's the doozy for me as I tried remembering: > > >       If the final value specified is not in the sequence that the > >       magical increment would produce, the sequence continues > >       until the

Re: Incrementing letters in for loop

2010-04-14 Thread Shawn H Corey
C.DeRykus wrote: And, here's the doozy for me as I tried remembering: If the final value specified is not in the sequence that the magical increment would produce, the sequence continues until the next value is longer than the final value specified.

Re: Incrementing letters in for loop

2010-04-13 Thread C.DeRykus
On Apr 13, 8:54 am, shawnhco...@gmail.com (Shawn H Corey) wrote: > C.DeRykus wrote: > > Clear as mud?  Did you say 'Hell, no'...?  Go then and > > meditate on  autoincrement magic,  grasshopper. When > > enlightenment comes, please report back and  explain it > > to us too... > > Actually, it is be

Re: Incrementing letters in for loop

2010-04-13 Thread Brandon McCaig
2010/4/13 Magne Sandøy : > Thanks for all the good info. I think I have a grasp on incrementing and > comparison, but now, what puzzles me, is the fact that when I use "le" less > than or equal, why does it actually increment the "z"? It is by then passed > the less than, and already at equal to "z

Re: Incrementing letters in for loop

2010-04-13 Thread Magne Sandøy
Shawn H Corey wrote: Owen wrote: On Tue, 13 Apr 2010 05:35:51 +0200 Magne Sandøy wrote: Hi. I'm new to perl, and I stumbled across a strange behavior in my for loop. In the following code, the second for loop actually counts way passed what I expected, and actually stops at "yz" and not "z"

Re: Incrementing letters in for loop

2010-04-13 Thread Shawn H Corey
C.DeRykus wrote: Clear as mud? Did you say 'Hell, no'...? Go then and meditate on autoincrement magic, grasshopper. When enlightenment comes, please report back and explain it to us too... Actually, it is because string-comparison operators order strings differently than auto-increment.

Re: Incrementing letters in for loop

2010-04-13 Thread C.DeRykus
On Apr 12, 8:35 pm, msan...@gmail.com (Magne Sandøy) wrote: > Hi. > > I'm new to perl, and I stumbled across a strange behavior in my for loop. > In the following code, the second for loop actually counts way passed > what I expected, and actually stops at "yz" and not "z" as expected. > As shown b

Re: Incrementing letters in for loop

2010-04-13 Thread Shawn H Corey
Owen wrote: On Tue, 13 Apr 2010 05:35:51 +0200 Magne Sandøy wrote: Hi. I'm new to perl, and I stumbled across a strange behavior in my for loop. In the following code, the second for loop actually counts way passed what I expected, and actually stops at "yz" and not "z" as expected. As shown

Re: Incrementing letters in for loop

2010-04-13 Thread Shlomi Fish
On Tuesday 13 Apr 2010 11:17:12 Magne Sandøy wrote: [SNIP] > > Hi again. > > Does this mean this is a bug? It's not a bug - this is how it works. > My point is to get "z" at the end. Using "eq" or lt" wont work. You need to evaluate the condition at the end of the loop instead of at the begin

Re: Incrementing letters in for loop

2010-04-13 Thread Magne Sandøy
Shlomi Fish wrote: Hi Magne, On Tuesday 13 Apr 2010 10:37:15 Magne Sandøy wrote: Shlomi Fish wrote: Hi Magne, On Tuesday 13 Apr 2010 06:35:51 Magne Sandøy wrote: Hi. I'm new to perl, and I stumbled across a strange behavior in my for loop. In the following code, the second fo

Re: Incrementing letters in for loop

2010-04-13 Thread Shlomi Fish
Hi Magne, On Tuesday 13 Apr 2010 10:37:15 Magne Sandøy wrote: > Shlomi Fish wrote: > > Hi Magne, > > > > On Tuesday 13 Apr 2010 06:35:51 Magne Sandøy wrote: > >> Hi. > >> > >> I'm new to perl, and I stumbled across a strange behavior in my for > >> loop. In the following code, the second for loo

Re: Incrementing letters in for loop

2010-04-13 Thread Magne Sandøy
Shlomi Fish wrote: Hi Magne, On Tuesday 13 Apr 2010 06:35:51 Magne Sandøy wrote: Hi. I'm new to perl, and I stumbled across a strange behavior in my for loop. In the following code, the second for loop actually counts way passed what I expected, and actually stops at "yz" and not "z" as exp

Re: Incrementing letters in for loop

2010-04-12 Thread Shlomi Fish
Hi Magne, On Tuesday 13 Apr 2010 06:35:51 Magne Sandøy wrote: > Hi. > > I'm new to perl, and I stumbled across a strange behavior in my for loop. > In the following code, the second for loop actually counts way passed > what I expected, and actually stops at "yz" and not "z" as expected. > As sho

Re: Incrementing letters in for loop

2010-04-12 Thread Owen
On Tue, 13 Apr 2010 05:35:51 +0200 Magne Sandøy wrote: > Hi. > > I'm new to perl, and I stumbled across a strange behavior in my for > loop. In the following code, the second for loop actually counts way > passed what I expected, and actually stops at "yz" and not "z" as > expected. As shown by

Incrementing letters in for loop

2010-04-12 Thread Magne Sandøy
Hi. I'm new to perl, and I stumbled across a strange behavior in my for loop. In the following code, the second for loop actually counts way passed what I expected, and actually stops at "yz" and not "z" as expected. As shown by the third for loop, incrementing the letters, seems to give me the