> -----Original Message-----
> From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 27, 2002 1:43 AM
> To: [EMAIL PROTECTED]
> Subject: problem with O_RDONLY
> 
> 
> Hello everyone,
> I have a program that uses "O_RDONLY" extensively.
> After upgrading to Perl 5.6.1, every time this program is 
> run, I see errors
> in the log files similar to this:
> Argument "O_RDONLY" isn't numeric in subroutine entry at
> /usr/local/lib/perl5/5.6.1/i386-freebsd/DB_File.pm line 259.
> 
> Can anyone please tell me why I get this error, or how to solve it?

The problem's not with DB_File, it's with your calling script.

1. Make sure "use strict;" is in your program at the top.
2. Make sure you "use Fcntl;" to get the definition of O_RDONLY.

If that doesn't make the warning go away, post a small program that
exhibits the problem.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to