Hey all, Once again I feel as if the following code is far too long and can easily be shortened. Could some one give me some ideas on doing this?
foreach my $U (sort keys %PASS) { $PASS{$U}{'fname'} = ""; $PASS{$U}{'lname'} = ""; $PASS{$U}{'user'} = ""; $PASS{$U}{'password'} = ""; } Of coarse all the above does is reset the hash values (%PASS) to equal nothing. I am pretty sure I can do this alot easier.] Also does the following have to be written like so? $new_user = $PASS{$PASSWD_NAME}{'user'}; $new_pass = $PASS{$PASSWD_NAME}{'password'}; $new_fname = $PASS{$PASSWD_NAME}{'fname'}; $new_lname = $PASS{$PASSWD_NAME}{'lname'}; Do I have to declare each hash value like the above. Of coarse I want to be able to still declare a variable to each hash value that I want Does any one have any ideas on this? Thx in advance, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]