Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: bareword in sysopen?

by periapt (Hermit)
on Oct 20, 2008 at 14:07 UTC ( #718228=note: print w/replies, xml ) Need Help??

in reply to bareword in sysopen?

According to the doc page DB_File uses the constants defined in the dbopen function library. A quick web search on "man dbopen" suggest that the constants defined in fcntl.h are part of this library so I would try "use Fcntl" to see if that clears up your errors.

Interestingly, the doc page indicates that using O_WRONLY as a flag to the open action will produce an error since it doesn't make any sense to open a database for writing only. It's probably a different, non-db, file that is being opened this way.

use strict; use warnings; use diagnostics;

Replies are listed 'Best First'.
Re^2: bareword in sysopen?
by chrism01 (Friar) on Oct 21, 2008 at 07:47 UTC
    'it doesn't make any sense to open a database for writing only.'

    Why? Makes perfect sense to me. Its just another data store.

      Mmmmm, you'll have to take that up with the writers of dbopen. That was their reasoning for making O_WRONLY trip an error.

      use strict; use warnings; use diagnostics;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://718228]
Corion waves to virtualsue
[virtualsue]: I have made a post for the first time in ... years
[marto]: hey virtualsue!
Eily thought about Neko Case first, something might be wrong with my brain's wiring
[virtualsue]: I recommended dbic-migration even though I am having trouble with it this week. It might be my fault.
[ambrus]: wow! I haven't seen you here for a long time, virtualsue
virtualsue waves back
[Eily]: it would have been 2 years in 2 weeks actually. And welcome back virtualsue :)
[Corion]: I think I saw virtualsue more recently in person than online :-D
[virtualsue]: It's true that there was a bigger gap between the 2 yr old post and the one before it

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2017-09-26 13:47 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (295 votes). Check out past polls.