in reply to
Re: Tact and the Monastery
in thread Tact and the Monastery
I would probably change that to look like
# crypt the password
my $salt= $chars[rand(@chars)] . $chars[rand(@chars)];
so that the temporary variables (@chars
) disappear after the closure ends. And I agree with the suggestion lower down: you could lose $salt
and incorporate the salting in the call to crypt.
but my friends call me T.