in reply to Re: Guess Number
in thread Guess Number
How about:
(use warnings is only included to show that "42\n" numifies to 42 with no warning; it really should be removed to prevent warnings on more seriously non-numeric input.)use strict; use warnings; print "Guess the Code:"; 1 while <> != (1+int rand 10); print "\n Time taken to break the Code ..: ", time()-$^T, " seconds\n +";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Guess Number
by GrandFather (Saint) on Sep 01, 2006 at 22:03 UTC |