I've been able to swap in my project directory and get this to partially work. I get 12x error "Use of uninitialized value in concatenation (.) or string at test.pl line 35." And line 35 corresponds to this line:

 $answer[$number++] .= ", " . $_->[$column] for @$arrayref;

I am searching the directory for 12 files, so that seems to make sense that there are 12 errors. Once the errors print,I get the header row, and then I get the number 1 row as this: 1, , , , , , , , , , , ,. Then all of the following rows print just like intended.

When I try to point to the column I want...(in this case, the 11th column. $column = 11) I get 3,635 of those errors before getting the blank row 1, and then all of the data that I want.

nohup: Use of uninitialized value in concatenation (.) or string at test.pl + line 35. Number, thing1, thing2, thing3, etc 1, , , , , , , , , , , , 2, 0.954370854376634, 0.342822118341448, 0.572790744083124, 0.59224361 +0847652, 0.8851590415068, 0.991382122632363, 0.507483754645392, 0.911 +63751726292, 0.746774421369453, 0.834212591847216, 0.405652973225827, + 0.816633320526871 3, 0.991624960933286, 0.991327116256435, 0.941102605547385, 0.99452435 +3181868, 0.994089351524488, 0.936750116018622, 0.984664588090976, 0.9 +91809613768339, 0.995157524403383, 0.99036040081599, 0.5066156863869, + 0.559803287167354 4, 0.971949973836183, 0.98269241861483, 0.98789028053774, 0.9698163919 +63118, 0.967753189092842, 0.951648687904388, 0.993352530560803, 0.988 +214472795065, 0.989701083946332, 0.982533372295779, 0.271015752055197 +, 0.563841526116344 5, 0.035742211264196, 0.365226753494403, 0.2865774134715, 0.2099523224 +1765, 0.472126907503153, 0.380517314225538, 0.281019146329213, 0.2162 +24917348467, 0.0665524840406343, 0.175285452052, 0.4819820327753, 0.4 +23563619759855 6, 0.756579058259939, 0.890650837623651, 0.931449842413731, 0.76140477 +0602313, 0.704484524751191, 0.399501625385289, 0.516747548785127, 0.8 +25989268175438, 0.590967055354945, 0.524160278838733, 0.1661424041710 +08, 0.000491664086159459 7, 0.712831728096357, 0.254713361402047, 0.539928335806198, 0.08034247 +23962962, 0.0344976765160731, 0.182113998255013, 0.14620549377983, 0. +0195129814144615, 0.532640937604125, 0.283745467826306, 0.34889286275 +5017, 0.483644189994046

One other problem I am having, I need the pattern to read more like my $filepattern = qr/(*).foo__bar_ar/ because the file names can change substantially, but the extension is always the same. But I get this error "Quantifier follows nothing in regex; marked by <-- HERE in m/(* <-- HERE ).foo__bar_ar/ at test.pl line 11." when I try things like * or *.*

I've posted a small set of data sets in a reply to the main thread.


In reply to Re^2: Consolidating nstore arrays by Speed_Freak
in thread Consolidating nstore arrays by Speed_Freak

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.