in reply to Getting input from keyboard

perldoc perlintro