Yeah...what I do is while gathering the input. Look for 3 consecutive newlines.
my $break; while(<STDIN>){ last if $break == 3; $break++, next if /^\n$/; ## do stuff to $_ here } > -----Original Message----- > From: Brian Warn [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 26, 2002 12:19 PM > 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] > ---------------------------------------------------------------------------- -------------------- 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]