Re: file.db VS filedb
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Mon, 28 Jan 2008 16:52:30 -0800
MK wrote:
when i "use DB_File" the files produced lack a dot in their title, eg.
dbmopen %email, email.db, 0666;
manipulates a file who's directory entry is actually emaildb
MORE IMPORTANTLY, perl will not access a database outside of the same directory as the script -- it pulls a blank hash. without being able to include any functional path in the filenames, i can't even call the script with a soft link...i have to use a shell script to cd first
that is ridiculous and i presume a bug that may have been fixed somewhere?
perl 5.8.8 on fedora 7
Put these two lines at the top of your program:
use warnings;
use strict;
And perl will tell you that you are concatenating two barewords.
email.db is tranlated by perl as 'email' . 'db' and there is no "dot" in the concatenation of those two strings.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.
- References:
- file.db VS filedb
- From: Mk
- file.db VS filedb
- Prev by Date: file.db VS filedb
- Next by Date: Re: file.db VS filedb
- Previous by thread: file.db VS filedb
- Next by thread: Re: file.db VS filedb
- Index(es):
Relevant Pages
|
|