in reply to generating random filenames

You probably meant
... $current_length <= $length_limit; ...
(less or equal instead of greater or equal).

Greetings

Andreas

Addendum: a walkthrough in the debugger or a print statement inside the loop helps finding such problems. :-)

Have fun ...

Replies are listed 'Best First'.
Re: Re: generating random filenames
by Amoe (Friar) on Jul 10, 2001 at 19:39 UTC
    Isn't the middle argument the condition that's true to terminate the loop? ...I guess not, cuz it seems to work now.
      Nope, just the opposite. As long as the the middle part evaluates true the loop continous.

      <irony> Never mind, at least this gave me a question I was able to answer. </irony>

      Have(ing) fun ...

      Andreas