<?xml version="1.0" encoding="windows-1252"?>
<node id="74815" title="How can I split a string into chunks of size n bytes?" created="2001-04-23 18:24:24" updated="2005-08-15 10:21:21">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
As in:
&lt;CODE&gt;    @bits = chunk($scalar, $bytes);
&lt;/CODE&gt;
Which would return $scalar in @bits, each $bytes size, plus
the remainder in the last entry.</field>
<field name="parent_node">
1826</field>
</data>
</node>
