in reply to Re: Passwords
in thread Passwords

sorry to bother you again, but how do i put the generated password into a variable i.e $password. I have tried doing it using $password = join '', ....... But it just returns the first character of the generated password when i print it. Thanks

Replies are listed 'Best First'.
Re(3): Passwords
by Dog and Pony (Priest) on Aug 02, 2002 at 11:42 UTC
    Actually, there is, I see now, an error in my code which is the reason you can't do that right off the bat. My mistake for using print to test it with, since print happily takes arrays as input...

    Anyhow, you want Abigail-II's version below in either case, since it a) works, b) is much neater and c) makes sure you always have at least one each of numbers, lower- and uppercase characters (I missed that wish too). :)


    You have moved into a dark place.
    It is pitch black. You are likely to be eaten by a grue.