banduwgs has asked for the wisdom of the Perl Monks concerning the following question:

I am using AsciiDB module as a simple text base database in Windows platform. It's work fine with local directories like: DIRECTORY => 'C:\test\db' Is there anyway to give a windows network directory path like: DIRECTORY => '\\computer_name\shared_db' while shared_db is a shared folder in perticular computer.

Thanks in advance - SB

Replies are listed 'Best First'.
Re: AsciiDB::TagFile (shared?) DIRECTORY
by jdtoronto (Prior) on Sep 16, 2003 at 14:30 UTC
    hi!

    I have never used AsciiDB. But I had a quick look at the source. It appears to use the module File::Spec, so I wouild check out that module. AsciiDB is Pure Perl so you can mess with the source if you need to quite easily!

    BEGIN { eval "use File::Spec"; $catPathFileName = ($@) ? sub { join('/', @_) } : # Unix way sub { File::Spec->catfile(@_) }; # Portable way }
    File::Spec is part of the base distribution of Perl at 5.8.0 (which is what I use) documentation on it is naturally included in your html docs if you are using AS Perl.

    jdtoronto