print "Enter the name: "; while ($line = ) { # do whatever you want, $line holds the user's input }