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

Hey,

I've been exploring with ActiveState perl for a week or so and still trying to get my data program to run on this W2k server using ActiveState.

Previously it was working on two servers running Perl and IIS.

An error I'm running into on trying to run this script w/ActiveState is that its giving me a 'Can't open FILENAME: No such file or directory' error.

This seems like a newbie mistake, but the file is there and located in the right directory. Also the directory has proper settings.

Code:

use DB_File; tie %add, "DB_File", "C:/datafiles/login" or die "Can't open FILENAME: + $!\n"; $add{"$username"} = "$timerss\|\|\|$session"; untie %add;
I have DB_File module installed correctly, but somehow this part of the code is giving me errors.

Anyone have any suggestions on why it might be giving me a error like this when using ActiveState Perl?

I'm pretty stumped and I read the tie doc, but still no luck.

I also tried using "C:\datafiles\login", but still no luck and gives me same error msg.

Thanks,
Anthony

Replies are listed 'Best First'.
Re: Using DB_File and Tie with ActiveState
by mkirank (Chaplain) on Jan 13, 2004 at 08:13 UTC
    did u try c:\\datafiles\\login ...since \ is a escape character u need to escape that character with a \\ also IIS must have permission to access that folder hope this helps ;-)
Re: Using DB_File and Tie with ActiveState
by rdfield (Priest) on Jan 13, 2004 at 10:06 UTC
    Have you tried adding an extension to the file name, eg login.db instead of just login? Do you have permission to write to the c:\datafiles directory?

    rdfield