I have an array, say i'm stepping through a debugger and the first two elements look like:
1 ARRAY(0x4779c0) 0 'IBM' 1 'B' 2 226110 3 22020702 4 545 5 12.5109 2 ARRAY(0x477a68) 0 'AOL' 1 'B' 2 '4RK11709' 3 20020702 4 3455 5 81.3588
So now I wanted to convert it into something that you would access using the foreach and split statements, so again if i were going through the debugger and wanted to see it, this is the format i would want it to be in:
0 'IBM,B,226110,20020702,545,12.5109' 1 'AOL,B,4RK11709,20020702,3455,12.5109'
How would you convert from the indexed-record array to the comma-separated array? Thanks in advance, Brent.

In reply to Converting an index record array into a comma-separated array. by brentheigold

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.