4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package db_data;
use strict;
use vars qw(@EXPORT_OK @ISA);
use Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw($DB_URL $DB_USER $DB_PASSWD);
use vars qw( $DB_NAME
$DB_HORST
$DB_PORT
$DB_USER
$DB_PASSWD
$DB_URL
);
$DB_NAME = "testdb";
$DB_HORST = "localhost";
$DB_PORT = "3306";
$DB_USER = "Test";
$DB_PASSWD = "Test";
$DB_URL = "DBI:mysql:database=$DB_NAME;host=$DB_HORST;port=$DB_PORT";
1;
1
2
3
4
5
6
7
8
9
10
11
use Readonly;
use vars qw($DB_NAME $DB_HORST $DB_PORT $DB_USER
$DB_PASSWD $DB_URL
);
Readonly $DB_NAME = "testdb";
Readonly $DB_HORST = "localhost";
Readonly $DB_PORT = "3306";
Readonly $DB_USER = "Test";
Readonly $DB_PASSWD = "Test";
Readonly $DB_URL = "DBI:mysql:database=$DB_NAME;host=$DB_HORST;port=$DB_PORT";
Readonly our $DB_NAME = "testdb";
4 Einträge, 1 Seite |