If you enter only return and no input, then you could check on this:
chomp(my $MyInput = <STDIN>);
last if ( $MyInput eq '' );
Obviously this won't work if blank lines are allowed, but if not then could
try this way.
Wags ;)
-----Original Message-----
From: Brian Warn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 09:19
To: [EMAIL PROTECTED]
Subject: <STDIN> question
Is there a way to have a script accept enter/return vs. ctrl+d to tell a
program where I specify that input be obtained via <STDIN> that I'm done
inputting data?
-Brian
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]