As I was working on getting DBD::CSV to work on my Windows98 maching with ActiveState Perl 5.6.0, I had some problems.
$connectstr="C:\Windows\Desktop" didn't work. I got an error along the lines of
"C:indowsesktop not found." (sorry, can't remember the actual error, but that's the gist of it. So then I put in an extra set of quotes $connectstr="C:\\Windows\\Desktop" and got the same error. So, after trying a few hundred different things, I got it to work with single quotes. I figured if it worked with single quotes, then putting more backslashes infront of the existing backslashes would work inside double quotes, which it did. Unfortunatly, I still don't know why it works.
I looked into CSV.pm. It uses prototypes, which I don't get yet, and I don't have my camel handy. sub connect ($$;$$$) means (I think) two scalars, followed by three optional scalars. &DBD::CSV::connect() doesn't have a regex in it, but it does call &DBD::File::dr::connect() which does use a regex (one that is *way* beyond me now), which is where the problem comes from.
I think that makes it not a bug, but something strange that isn't documented in DBD::CSV as far as I can tell.
What do you think? Does any of this make sense?
michael
the blue haired monk
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.