in reply to Re: Golf: Sudoku solving
in thread Golf: Sudoku solving
$_=$`.$_.$'.<>;split//;${/[@_[map{$i-($i="@-")%9+$_,9*$_+$i%9,9*$_%26+ +$i-$i%27+$i%9-$i%3}0..8]]/o||do$0}for/0/||print..9
Dear Monks, I need your help
I don't understand the "split" statement: no return value, apparently no side effect. Reading split was not helpful... :-/
Another thing: this solver works fine on debian but loop on win xp (strawberryperl 5.14.2.1)
UPDATE (solved):Thanks to BrowserUk, tobyink and eyepopslikeamosquito. Very clear and fast answers. FYI, in my case, difference between debian and winxp was in fact, between perl 5.8.8 and 5.14.2.1.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: split//; (Re^2: Golf: Sudoku solving)
by BrowserUk (Patriarch) on Jan 11, 2013 at 09:17 UTC | |
by tobyink (Canon) on Jan 11, 2013 at 09:44 UTC | |
by BrowserUk (Patriarch) on Jan 11, 2013 at 09:54 UTC | |
Re: split//; (Re^2: Golf: Sudoku solving)
by eyepopslikeamosquito (Archbishop) on Jan 11, 2013 at 09:51 UTC |