http://www.perlmonks.org?node_id=109635


in reply to Re (tilly) 3: (Golf) Strings-to-Array
in thread (Golf) Strings-to-Array

Hi Tilly.

Ok so on that input it doesnt work.

I guess now I'm being a pain, but japhy's spec *did* say make a function that takes any number of equal-length strings

However I do believe in defensive programming, so I can see why you did that.

Very interesting, and food for thought

Yves

$\="\n"; $,=","; print r("0000", "0000", "0000"); #outputs #000,000,000,000

Replies are listed 'Best First'.
Re (tilly) 5: (Golf) Strings-to-Array
by tilly (Archbishop) on Sep 03, 2001 at 03:38 UTC
    And what happens if you call r('0000')?

    Any number includes 1. :-)