in reply to Friday Golf: All 2-digit combinations
Since most solutions have the numbers running together, I wrote up this little one-liner to help split the pairs apart:
perl -ne 'print join " ", sort unpack("A2" x (length()/2), $_)'
Just pipe the output of your Golf solution into it.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|