Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-03-2005, 07:09 PM   #1
Registered: Jan 2003
Location: NZ
Distribution: RedHat 8
Posts: 44

Rep: Reputation: 15
perl with BerkeleyDB issue?

I now have several perl modules manipulating one or another SET of Berkeley DB databases.

To change the SET being manipulated at a particular time has meant modifying the top level code in each module to point to a different path ... (simple enough I guess, as long as one remembers to modify ALL the modules in unison).

Better to centralise this, I thought, with a head module reading the path that is desired right now from a simple file entry, setting up the Berkeley Environment with that, and Exporting it.

Now the modules which import (use) those exported variables compile ok, but the BerkeleyDB module chokes at runtime on various error conditions. A typical complaint is that some LITERAL-BAREWORD-CONSTANT which may be a flag to a sub-object "is not numerical" ... but there are others too. So I've had to go back and re-paste the same path and environment setup code into each module separately in order to make them work again.

The code-repitition seems like it should be unnecessary (and potentially dangerous!) but I am wondering what I can do about it?

Any ideas appreciated?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl regular expression issue zikhermm Programming 7 09-23-2005 03:48 PM
mysql 4.1.7 mysqlhotcopy perl issue dtra Linux - Software 1 05-10-2005 09:11 AM
Perl issue - Snapback2 kantzow Programming 1 04-10-2005 05:59 AM
perl issue moonloader Slackware 2 03-27-2004 01:07 PM
Perl Script issue.... oicdn Linux - Software 2 03-24-2004 10:47 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration