
@chars the same as ($#chars) ?
In the little program below, lines 6 and 7 appear to be equivalent.
reading to clarify this point.
TIA
Owen
-----------------------------------------------------------
#!/usr/bin/perl -w
#$salt = $chars[rand($#chars)] . $chars[rand($#chars)]; # Line 7
$encrypted = crypt($password, $salt);
print "$encrypted\n";