in reply to How can a script use a password without making the password visible?

hello Cody Fendant

I'd go with the last option by hippo above, but to be more professional you can add Term::ReadKey's ReadMode to hide what was typed.

use Term::ReadKey; print "password please:\n"; ReadMode 'noecho'; my $password = ReadLine 0; chomp $password; ReadMode 'normal';


There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.