Firstly, welcome to the Monastery.

Good effort on trying to use <code></code> tags, but you would have noticed that your post didn't look quite right when you clicked preview, before clicking create. Could you please edit your post and fix it up.

(from what I can see it looks like you've put every line inside a <p> tag, which isn't necesssary. You're meant to use 1 set of <p> tags around an entire paragraph, not each line. And if you've opened a <p> tag you need to close it </p> before opening a <code> tag.)

Your question, "i want to use a csv file which contains 2007/12/28, 36.1000, 36.2300, 35.6700, 36.1200
2007/12/29, 36.1100, 36.2400, 35.6100, 36.1000
etc.
to populate @msft above
help please
"

I'll leave you with a few hints, and leave you to work out the solution.

1. You'll need to open a file handle to your csv file.
2. You'll need to read the file with some kind of loop.
while(my $line = <$fh>){ #block }

3. Then you'll need to push it onto your @msft array.

happy learning, and remember Perldoc is your friend when writing code. Even the saints among us still refer to it.

In reply to Re: candlestick from csv by desemondo
in thread candlestick from csv by slowandsteady

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.