Your answer is probably what he needs... (I am thinking too hard). > -----Original Message----- > From: Wagner-David [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 26, 2002 12:23 PM > To: 'Brian Warn'; [EMAIL PROTECTED] > Subject: RE: <STDIN> question > > > 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] >
---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]