LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-03-2005, 07:09 PM   #1
Xstack
Member
 
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?

Xstack
 
  


Reply


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


All times are GMT -5. The time now is 05:20 AM.

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