printf("Enter word :"); chomp($visible_word = >); #### you can see what you are typing ... printf("\n"); system("stty -echo"); chomp($passwd = ); #### this won't be visible on screen ... printf("\n"); system("stty echo");