I have the following code segment:

for ($count=1;$count<11;$count++)
{
$c=getc;
$count=1;
print "blah\n";
if (ord($c) eq 10)
{
print "Stopping..."
$count = 12;
}
}

I'm trying to get it so it prints a bunch of "blah's"
until I hit the enter key, at which point it will say
that it is stopping.  However, when I run this piece
of code, it says only one blah, and even then, it is
after I hit enter...  So, what am I doing wrong?

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to