- or download this
print "username: ";
chomp ($uname = <STDIN>);
print "\npassword: ";
chomp ($password = <STDIN>);
print "\nYou entered username $uname and password $password\n";
- or download this
someusername
somepassword
- or download this
perl script.pl < answer.txt
- or download this
C:\test\scratch>perl script.pl < answer.txt
username:
password:
You entered username someusername and password somepassword