Thread Problem mit dem Einlesen (55 answers)
Opened by Gast at 2006-05-17 13:33

XeroX
 2006-05-31 15:10
#7639 #7639
User since
2006-05-17
27 Artikel
BenutzerIn
[default_avatar]
[quote=Strat,29.05.2006, 18:02]oder besser noch:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
package My::Config;
use strict;
use Readonly;

Readonly our $DATABASE => "drow";
Readonly our $DB_TABLE => "drow_dictionary";
Readonly our $DB_USERNAME => "root";
Readonly our $DB_PASSWORD => "";

1;

und dann im Hauptprogramm
Code: (dl )
1
2
3
4
5
6
require "drow_pwx.pl";       # Contains database credentials
...
my $dbh = DBI->connect("DBI:mysql:$My::Config::DATABASE:localhost", $My::Config::DB_USERNAME, $My::Config::DB_PASSWORD ) ||
 die( "Could not establish database connection: ".$DBI::errstr );
 $dbh->do( "delete from $My::Config::DB_TABLE" );
# usw.
[/quote]
Ich hab alles so gemacht wie oben...

Und bekommt jetzt wieder den Fehler hier.... -.-

Couldn't open file: No such file or directory at C:/Programme/xampp/htdocs/drow/convertDictionary.pl line 23.

View full thread Problem mit dem Einlesen