Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dbmopen file extensions

Status
Not open for further replies.

Fiendy

Programmer
Sep 6, 2001
14
GB
Hi,
I've just moved from Perl 5.005-03 on Redhat 6 to Perl 5.6.0 on Linux Mandrake 8 and I'm now having problems with accessing DB files via dbmopen.
Previously, I only needed to specify the filename, but now I have to specify the filename AND extension Eg:
To open a DB file called '/tmp/MyDb.db':-
Perl 5.005 code = dbmopen(%H,'/tmp/MyDb', 0666);
Perl 5.6.0 code = dbmopen(%H,'/tmp/MyDb.db', 0666);

How do I get Perl 5.6.0 to add the extension automatically?
I don't really want to have to go through all the code changing every instance unless absolutely necessary as there's a lot of it!

Thanks for any help in advance,

Mark.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top