in reply to Re^2: Finding the lowest available UIDs
in thread Finding the lowest available UIDs

If your UIDs get too high, either add a test in the loop (no need to do anything if the UID is above 250), or use a hash instead of an array.
  • Comment on Re^3: Finding the lowest available UIDs

Replies are listed 'Best First'.
Re^4: Finding the lowest available UIDs
by Your Mother (Archbishop) on Nov 12, 2008 at 17:24 UTC

    I know. :) I was remarking upon the suitability of posting an open ended while statement without such a test or safety valve. In the interests of full disclosure: I brought down a production server (internal, anyway) once with a similar snippet. So the beam in my eye is substantial.