Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: generating random filenames

by atl (Pilgrim)
on Jul 10, 2001 at 19:33 UTC ( [id://95328]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-19 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found