Dear Monks,

I'm trying to setup the reading and parsing in a data structure that is made of two parts linked together.

The first part is made of a matrix with 5 columns and N rows, and each column has headers that define the content of the column/array.

The second part employs J matrix of 2 columns and M rows each. The elements of one array in the first matrix are a pointer that links a row in the first matrix to the contents in the second matrix. For example, a header called "position" in the first matrix defines M positions in a beam section, and each position is linked to another matrix that has 2 columns/arrays.

Since I have J matrix in the second part, I need to get the right one with the corresponding header.

My problem is how to read the content of the matrix, loop over the first part and then parse the corresponding "position" in the right (second part) matrix. Also, I need to make use of the module Workflow::csv_File exclusively in order to read the contents.

Many thanks in advance for your patience and time!


In reply to parsing with Workflow::csv_File by devoted_to_Perl

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.