Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^3: DB_File modes

by chuckbutler (Prior)
on Feb 11, 2010 at 23:38 UTC ( #822783=note: print w/replies, xml ) Need Help??

in reply to Re^2: DB_File modes
in thread DB_File modes

...Mostly on non-Unix platforms. You sometimes receive just a 1, true, on success. I have been burned on this a few times, but then again, I work with a lot of non-Unix distributions. Thanks. -c

Replies are listed 'Best First'.
Re^4: DB_File modes
by Anonymous Monk on Mar 10, 2010 at 12:02 UTC
    Since you arent going to elaborate, I'll just go ahead and refute your claims

    DB_File has contained this code longer than perl 5.5 has existed. The situation you describe is nigh impossible (bless would have to fail and return 1, TIEHASH would have to fail and return 1).

    15 May 1997

    07 May 1997

    sub TIEHASH { my $pkg = shift ; bless { VALID => { map {$_, 1} qw( bsize ffactor nelem cachesize hash lorder) }, GOT => {} }, $pkg ; }

    If you intentionally return 1 , tied would return undef.

Re^4: DB_File modes
by Anonymous Monk on Feb 12, 2010 at 00:01 UTC
    That is not a very convincing argument.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://822783]
[Happy-the-monk]: Goody-goody!
[Discipulus]: still happy Happy-the-monk? even in 2018? good for you.. ;=)
[choroba]: Good morning!

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-01-23 08:42 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (242 votes). Check out past polls.