<?xml version="1.0" encoding="windows-1252"?>
<node id="67985" title="Re: (Golf) Strings-to-Array" created="2001-03-28 21:34:36" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="22609">
tye</author>
<data>
<field name="doctext">
&lt;p&gt;
If you allow me [id://44763|my favorite tool], then I can do it in 31 characters and I don't need to use the awful $&amp; and I don't require that the strings be the same length:
&lt;code&gt;use mapcar;
sub s2a{mapcar{join"",@_}map[/(.)/g],@_}
&lt;/code&gt;&lt;/p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- 
&lt;a href="/index.pl?node=tye&amp;lastnode_id=1072"&gt;tye&lt;/a&gt; 
(but my friends call me "Tye")</field>
<field name="root_node">
67973</field>
<field name="parent_node">
67973</field>
</data>
</node>
