#!/usr/bin/perl -w # die on input eq ("Enter") # [id://733443] while () { $in = $_; chomp ($in); unless (length($in)) { print "Enter is a command to quit" ; exit; } else { print "\$in is $in\n"; } }