use strict; while (<>) { print "You typed:\n$_\n"; } #### test You typed: test Hello You typed: Hello