Ok, that makes a lot more sense. Thanks for the clarification.
-Original Message-
From: Rob Dixon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:21 AM
To: Timothy Johnson; [EMAIL PROTECTED]
Subject: Re: Joining with a basic question
Timothy
select() returns the
ROTECTED]>
To: "'Weijie Ding'" <[EMAIL PROTECTED]>; "Andrew F."
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 10:00 AM
Subject: RE: Joining with a basic question
>
> Wow, and I thought mine was cryptic. Maybe you
How is this different
from:
select(STDOUT);
$| = 1;
-Original Message-
From: Weijie Ding [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 9:52 PM
To: Andrew F.; [EMAIL PROTECTED]
Subject: Re: Joining with a basic question
Hi, Andrew F.,
2002-12-03 13:48:40
I think th
Hi, Andrew F.,
2002-12-03 13:48:40
I think this may because your buffered output.
You can use the following to set output unbuffered/flushed before your first
statement in your program.
select((select(STDOUT), $| = 1)[0]);
==
By default, Perl buffers the output to STDOUT. Try setting the $| variable
to 1.
-Original Message-
From: Andrew F. [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 6:02 PM
To: [EMAIL PROTECTED]
Subject: Joining with a basic question
Hello all. My name is Andrew.
I
Hello all. My name is Andrew.
I might as well get right to it. I'm writing a real basic script, since I'm still
learning Perl. It looks like this:
print "Input a name: "; #Prompt for a name
sleep .5;
$name1 = ;#User input
print "\nInput anot