Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Thursday February 12, 2004
11:28 PM

ConfigReader::Simple now breaks windows paths

[ #17389 ]

Oops.

If you upgrade to ConfigReader::Simple, which automatically does continuation lines, your configuration values may come out funny if you have windows paths since a trailing directory separator looks like the start of a continuation.

base_dir \

You can, however, quote the value to prevent that, at least until I get a fix ready.

base_dir "\"

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I hate that! What an idiot I feel for not spotting it...

    Even worse I use to use Windows! but as \ doesn't usually work as a base dir, you need something more specific such as c:\, you can almost never use \. Normally I let Perl do it's magic, and use proper Unix / notation, e.g. c:/, and Perl would know what to do at the file system level.

    Well, at least I said it passes the tests, but could break in use, I just wish I'd come up with better tests, then this would have been spotted earlier...

    --
    -- "It's not magic, it's work..."