print sqrt==int(sqrt)?1:0for 1..2e4;
:-)
You got away with it because perl is looking for an expression; when the thing it then sees starts with a digit, it can't be anything but a literal number. So the parser eats as many characters as can be part of a literal number and then stops. For some fun, insert an x right after the 0 and watch what happens; or try any number of underscores.
Makeshifts last the longest.
In reply to Re^2: CarTalk Puzzler
by Aristotle
in thread CarTalk Puzzler
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |