RE: terminating input

2001-11-04 Thread Gary L. Armstrong
I am amazed. How does someone figure out that you can do this sort of thing? chomp($value[++$i] = STDIN); I mean, $value[++$i]? That really works? Crazy. I have six Perl books but somehow I am not yet getting this language I guess. But you know what I did, last prog I started just trying

(Slightly OT) RE: terminating input

2001-11-04 Thread Dave Storrs
On Sun, 4 Nov 2001, Gary L. Armstrong wrote: I am amazed. How does someone figure out that you can do this sort of thing? chomp($value[++$i] = STDIN); I mean, $value[++$i]? That really works? Crazy. [...] Well, that's mostly a C-style issue (and yes, it is crazy). C

Re: (Slightly OT) RE: terminating input

2001-11-04 Thread Paul Johnson
On Sun, Nov 04, 2001 at 12:18:38PM -0800, Dave Storrs wrote: On Sun, 4 Nov 2001, Gary L. Armstrong wrote: I am amazed. How does someone figure out that you can do this sort of thing? chomp($value[++$i] = STDIN); I mean, $value[++$i]? That really works? Crazy. [...]

terminating input

2001-11-02 Thread Jason Cruces
Hello all, Probably are really simple one but haven't found the answer yet. In an interactive program, where a user is prompted to enter more than one value, I would use chomp(@values = STDIN); And to terminate the input, enter Ctrl-D (or Ctrl-Z on windows). My question is, how would I change

RE: terminating input

2001-11-02 Thread Wagner-David
;) -Original Message- From: Jason Cruces [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 14:13 To: [EMAIL PROTECTED] Subject: terminating input Hello all, Probably are really simple one but haven't found the answer yet. In an interactive program, where a user is prompted to enter more

Re: terminating input

2001-11-02 Thread Maxim Berlin
Hello Jason, Saturday, November 03, 2001, Jason Cruces [EMAIL PROTECTED] wrote: JC Hello all, JC Probably are really simple one but haven't found the JC answer yet. In an interactive program, where a user is JC prompted to enter more than one value, I would use JC chomp(@values = STDIN); JC

Re: terminating input

2001-11-02 Thread John W. Krahn
Jason Cruces wrote: Hello all, Probably are really simple one but haven't found the answer yet. In an interactive program, where a user is prompted to enter more than one value, I would use chomp(@values = STDIN); And to terminate the input, enter Ctrl-D (or Ctrl-Z on windows). My