Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: (Golf) Strings-to-Array

by tye (Sage)
on Mar 29, 2001 at 02:34 UTC ( #67985=note: print w/ replies, xml ) Need Help??

in reply to (Golf) Strings-to-Array

If you allow me my favorite tool, then I can do it in 31 characters and I don't need to use the awful $& and I don't require that the strings be the same length:

use mapcar; sub s2a{mapcar{join"",@_}map[/(.)/g],@_}

        - tye (but my friends call me "Tye")

Comment on Re: (Golf) Strings-to-Array
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-11-26 00:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls