Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: (tye)Re: I think I'm starting to get it

by coolmichael (Deacon)
on Apr 10, 2001 at 10:53 UTC ( #71277=note: print w/replies, xml ) Need Help??

in reply to (tye)Re: I think I'm starting to get it
in thread I think I'm starting to get it

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 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?

the blue haired monk

Replies are listed 'Best First'.
(tye)Re4: I think I'm starting to get it
by tye (Sage) on Apr 10, 2001 at 18:37 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://71277]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-11-20 00:29 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (282 votes). Check out past polls.