I'm working with an array of arrays of arrays. I chose this method to deal with information that is variable in occurrence in three aspects. My main array is called @MAIN. Inside of MAIN is seq_unique, inside of which is seq_position. This is such as too accomodate a sequence (biological data) that could occur numerous times in different manners within a single file. I have found that if I try to use
print FILEHANDLE $MAIN[$seq_unique][$seq_position]\n";

that it returns
SCALAR(0x126ac8)<BR>
in the file addressed by FILEHANDLE
I'm expecting it to output the contents of that array there. What's wrong? The preceeding command to that is
$MAIN[$seq_unique][$seq_position] = \(@array[1 .. 21]);

where @array has data from a line of an input file with information corresponding to the occurrence called $seq_position of the sequence called $seq_unique.
thanks!

In reply to Array output as SCALAR by MrMadScience

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.