in reply to Re: Re: Re: Re: Re: WhichDBM_File?
in thread WhichDBM_File?

"Reconciling" can occur on a couple different levels:
  1. Identical scripts work identically on both systems, even though the actual data storage may be different.
  2. Files created on one system are interchangable with those on the other.
Number one is an issue right now because of a short-sighted decision I made several years ago. That was to apply locking to the actual datafiles, rather than to separate lockfiles. Not smart because, to do so, I have to know the name of the data file. And now they're different between the two systems. Oops! That may be easy to remedy, though.

Number two is harder, because I've got archival data I'd just as soon not have to recreate just to accomodate a different DBM. I suppose some sort of conversion routine might not be out of the question, however.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: WhichDBM_File?
by PodMaster (Abbot) on Apr 21, 2004 at 03:55 UTC
    1. sounds (potentially) like a recipee for a race codition (see perldoc DB_File), but it's easily solvable (use a sempahore aka lockfile).

    2. You've already got the data, just dump it in a platform independant form (should be trivial).

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.