Good to know on the ;;;;;
As for the csv, I can guarentee that there is never a comma in the string that it is looking at.
It is stock data, the first value is a ticker, the rest are dates or numbers that are in a standard format from the data provider (another reason I'd like to figure this out - so I can confront them with an issue with how they handle it if it turns out that it was very likely their data side - which is even more confusing since it then only screwed up when called programatically and not via a straight http connection by hand)
I only showed two lines because in the debugging that I went through, nothing else had any effect on it - so it seemed to me it would just clutter the post.
And yeah, I looked at the CSV specific modules, but I am only acting on one line of data so I just did it my way - but I'll try it out with the modules and see how it looks in the benchmarks.
I was mainly concerned that my matching text was somehow not doing what I imagined it was up to - or that the extra ; was making something behave oddly.
It seems that Perl has all kinds of lovely things built in that I always seem to find by accident and I was wondering if for some reason a ;space; after a regular expression substitution would then force the last character to be lowercase. Which to me seems insane, but then again, so do some of the other things perl does that make it great for golf :)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.