in reply to hanging at odd place, can still input but see nothing on screen (newbie)
while ((my $counter=0) <100){print $counter++};
$counter is always 0, the syntax of the while is wrong
try declaring $counter before the while, or use
for (my $counter=0;$counter<100;$counter++)
and ditch the $counter+=1.
Its keeling over in createNP by the way. I found that out by putting in "print "foo\n";" in various places until it didn't get printed. Simple but effective!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hanging at odd place, can still input but see nothing on screen (newbie)
by etherC (Initiate) on Jan 19, 2005 at 13:19 UTC |