Okay - good point. I tend to ramble :)

It doesn't some stuff that gets it started up (which is reading a stock ticker from a file - that stock ticker is all caps). Then it takes that ticker and hits the data feed over http, which then returns a single line of CSVs.
The CVS line will look something like:
"ABCD","10/19/2002",45.67,45.67,45.67,9999292922

I want to get the first value out of there, and strip off the quotes. Then the value that is in there (that our data feed always has in all caps) is used to look up a local filename that matches that.

The error I got after 20 iterations was showing that the data above (its equivalent) was returning "ABCd" and then when it went to lookup that filename - it wasn't finding it because the filename would be all uppercase.

I immediately figured it was the datafeed that was screwing up, so I went in through a raw http session and not through the automated perl one and I called that ticker and it came back "ABCD"
I then thought perhaps there was some weird thing that it just returned what you gave it, so perhaps it was getting butchered prior to that. I tried sending it a mixed case ticker, and it still returned "ABCD"
I then thought perhaps my code was doing something screwy based on the original file that it was using to lookup via - but after looking, that too was all caps.

So then I thought, well, perhaps it was a glitch in the data feed and now that I've been hitting it directly it seems to be working again. So I called my perl script again, and it died in the same place again, saying that the file it was looking for was "ABCd"

I then started looking at that value higher up in the code, and it breaks at the two lines that I included in here with my question - hence why I'm baffled.

And like I said, it was so bizarre and then I saw the double ; ; at the end of that line and I wondered if perhaps that somehow was something special that I was unaware of in Perl - it didn't make sense to me, but that isn't to say that all of Perl makes intuitive sense to me straight off as it is.

was that a better explaination?

In reply to Re: Re: Case change... why did this happen? by AssFace
in thread Case change... why did this happen? by AssFace

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.