Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by AlanD2

  1. AlanD2

    Strange behaviour for shift()

    Thanks for the second explanation. If I hadn't wasted so much of your time, I would say this whole example is hilarious :) I managed to construct the exact set of circumstances to ensure that the "for" and "foreach" loop gave identical answers: a) I chose five variables for @stack b) I...
  2. AlanD2

    Strange behaviour for shift()

    Thanks. That worked perfectly. That was probably the clearest technical explanation I've seen. Regards, Alan
  3. AlanD2

    Strange behaviour for shift()

    I need to be able to maintain a stack which varies in length according to circumstances. I want to use shift() and unshift() at the left, and push() and pop() at the right. I have noticed strange behaviour when using shift(). My simple example below shows the problem. In this example, when I...

Part and Inventory Search

Back
Top