in reply to DB_File - help

It's a permissions issue.
Try the following
my $dir = "/whatever"; my $file = $dir."/file"; die "cannot write to $dir : $!" unless -W $dir;
I suggest you pick something in the form of /home/username/...

update: There ain't nothing special about /tmp as far as perl/DB_File is concerned. /tmp must exist, otherwise the program would have died.


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: DB_File - help
by kiat (Vicar) on Nov 24, 2002 at 15:30 UTC
    Thanks, PodMaster! I got it to work :) I was changing the permission via WS_FTP (the GUI FTP program) and for some reasons, that didn't work. After I read your advice, I got into the server using MS-DOS FTP and typed the command to chmod the directory to 777. That worked! Been stucked for hours until you came to my rescue :)