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
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
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. [...]
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
;)
-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
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
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