The script never gets to the PRINT statements. I run it, it works. I run it again, it just sits there with a blank. Sometimes, one or more of the print statements will execute, sometimes all of them, sometimes none of them. This code is as simple as can be... Am I doing anything wrong??


You might put the calls to crypt password into a select loop as many progress meters are written. I suspect that it is still working, did you see the caveats, specifically the "Bugs" in the docs:


"Bugs

The function to generate a password can sometimes take an extremely long time."

It could just be trying to derive enough entropy, or similar, especially since you make multiple calls from within the same script. At least try putting a print call between each of the calls to Crypt::RandPasswd::word. How long have you let it run and is it on a local workstation or on a server that would have no X head?

http://danconia.org

Hmm... I left it running for a minute or two at most. The delay was coming from Crypt::RandPasswd::word. Changed it to use letters instead (Crypt::RandPasswd::letters) and it is very fast now, almost instantaneously. What you say does make sense though, it will obviously take longer to get "words" out of the entropy than letters.


Thanks for the help.


-- Chris.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to