In addition to what toolic said, you seem not to be learning from your past experience. In one of your previous threads I gave you links to help learn the basics. Here you seem to be trying things at random and reporting that they don't do what you want. This is a poor strategy, and while it may seem to take less effort than actually learning how to use the tools you've chosen to work with, trust me, it doesn't.

Here you can't have posted the code which produces this output, you split on commas when your input doesn't have any, you don't ask open to tell you why it may fail (e.g. or die "cannot open < $Filename: $!";), and crucially there is no print or say!

In the interests of actually getting better at this I suggest you read and more importantly understand the links provied in your previous thread. When posting it's important to show your code, the actual code in you're running, the actual input data and any output or errors generated. This is all covered in How do I post a question effectively?.


In reply to Re: How to store multiples lines/records in a array by marto
in thread How to store multiples lines/records in a array by Perlseeker_1

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.