in reply to Need help working with STDIN
sub prompt { -t STDIN and print "\n? "; } while ( prompt(), defined($_=<STDIN>) ) { chomp; print "$_\n"; } [download]
jdporterThe 6th Rule of Perl Club is -- There is no Rule #6.