On 4/17/07, Stephen Smith <4fires / gmail.com> wrote:
[snip]
> Your FasterCSV and String#unpack seem like a great place to start.  At a
> minimum, I need to be able to attach rules to each field like the number of
> positions (as well as packing character, eg, whitespace or zeroes, and maybe
> formulas based on other field values) in my format string. Is there an
> equivalent of String#pack out there?
>
> Steve
>

Array#pack

So unpack goes from String to Array, and pack goes from Array to String.

-A