How are you timing it? Consider:
print time, "\n"; 1 for 1 .. 1000000000; print time, "\n";
is just a loop, but takes a while to run (about 48 seconds on my system) and can be timed accurately enough as shown. You loop executes in about 10 micro seconds (timed over 1 million iterations) which doesn't seem excessively slow to me.
In reply to Re^2: Number gussing game
by GrandFather
in thread Number gussing game
by juwaidah1990
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |