Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re (tilly) 3: (Golf) Strings-to-Array

by demerphq (Chancellor)
on Sep 01, 2001 at 18:27 UTC ( #109635=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Re (tilly) 3: (Golf) Strings-to-Array
Download Code
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. :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://109635]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-08-01 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls