in reply to tie NDBM_File --> No locks available at ....

You speculate that it may be an OS issue, but you fail to specify just what OS you're using. (Your program works on my Ubuntu 8.04 Linux box.)

If it's a Linux or Unix OS then perhaps your account is limited in the number of file locks it is allowed (settable in /etc/security/limit.conf). If you're using SE-linux, that may apply additional restrictions. You can see current locks in /proc/locks.

Replies are listed 'Best First'.
Re^2: tie NDBM_File --> No locks available at ....
by jeanluca (Deacon) on Jan 26, 2010 at 10:17 UTC
    thnx for your reply.
    Its a Debian system. I found out that I tried my script on a NFS partition, which was the problem!

    cheers