Re: A new golf "Reversi" has started
[email protected] (Ton Hospel) Sun, 23 Nov 2003 16:07:39 +0000 (UTC)
| Newsgroups | gmane.comp.lang.perl.golf |
|---|---|
| Organization | lunix confusion services |
| Message-ID | <[email protected]> |
In article <[email protected]>, [email protected] (Ton Hospel) writes: > For how exactly it does this, you'll have to read the > source code I'm afraid. In the docs it comes with a: The rule seems to be that it starts as 256 as soon as there are 2 or more statements in a program. perl -wle 'for(1..2){print $^H}' 0 0 perl -wle 'for(1..2){print $^H;5}' Useless use of a constant in void context at -e line 1. 256 256 perl -wle 'print($^H),print($^H)' 0 0 perl -wle 'print($^H);print($^H)' 256 256