Thanx, I add something like you what suggest. XAO::Base on CPAN is a bit
outdated, I'll try to upload a new version soon together with this fix.
I'm just curious, is this the only thing that prevents it from working under
Windows? I never tried it and nobody reported any success/failures for
Windows yet.
What do you use it for -- XAO::FS or XAO::Web functionality? If I may ask...
Andrew.
On 6/25/07, Serguei Trouchelle via RT <bug-XAO-Base@rt.cpan.org> wrote:
Show quoted text>
>
> Mon Jun 25 11:01:58 2007: Request 27728 was acted upon.
> Transaction: Ticket created by STRO
> Queue: XAO-Base
> Subject: Win32 filenames and BaseConfig
> Broken in: (no value)
> Severity: Important
> Owner: Nobody
> Requestors: STRO@cpan.org
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=27728 >
>
>
> This code works wrong on MSWin32 systems:
>
> $dir=~/^\// ||
> throw XAO::E::BaseConfig "set_root - $dir must be an absolute
> path";
>
> Regexp should be /^(w:)?[\/\\]/ to work there as expected.
>
> --
> Serguei Trouchelle
>