Re: file.db VS filedb



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
.



Relevant Pages

  • file.db VS filedb
    ... manipulates a file who's directory entry is actually emaildb ... perl will not access a database outside of the same directory as the script -- it pulls a blank hash. ...
    (perl.beginners)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-11-20 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)