in reply to DBD:CSV doesn't interpret variable in "$dbh->" open command?

DBD::CSV is a red herring. It has nothing to do with the problem: you're putting $CSVfile in single quotes.

Always assume the problem is in your own code first.

Makeshifts last the longest.

  • Comment on Re: DBD:CSV doesn't interpret variable in "$dbh->" open command?

Replies are listed 'Best First'.
Re^2: DBD:CSV doesn't interpret variable in "$dbh->" open command?
by McMahon (Chaplain) on Aug 10, 2004 at 18:42 UTC
    Double-quotes don't work either. Neither do /'s. That's why I wonder if there is any syntax that succeeds. This example is the closest one to the DBD::CSV documentation.
      Have you printed out what $csvFile contains? Maybe it isn't what you think ...

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested

      From the error message you show, it looks to me like double quotes will work (or better yet, no quotes), but possibly only for relative paths.