sub adduser { print("Please enter the admin password: "); $epass = ; chop($epass); if($epass eq $adminpass) { print("Please enter the user you would like to add: "); $usertoadd = ; print("Please enter the password for the user: "); $passtoadd = ; $userpass{$usertoadd} = $passtoadd; print("That password has been added to the system\n"); } else { print("Wrong admin password\n"); } } print("Would you like to: \n"); print("1. Add new user\n"); print("2. Change admin password\n"); print("3. Enter the system\n"); $select = ; if($select == 1) { &adduser; }