Help for this page

Select Code to Download


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