9 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
package AppConfig;
use strict;
use warnings;
our $dbuser = 'dbuser';
our $dbpass = 'dbpasswd';
our $dbname = 'dbname';
our $dbhost = 'dbhost';
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
use strict;
use warnings;
use AppConfig;
my $dbh = DBI->connect("DBI:mysql:$AppConfig::dbhame:$AppConfig::dbhost",
$AppConfig::dbuser,$AppConfig::dbpasswd) or die $DBI::errstr;
#...
1
2
3
4
use FindBin;
use lib "$FindBin::Bin/myLibs";
my $file = "$FindBin::Bin/xyz.txt";
open( my $FH, "<", $myFile ) or die $!;
9 Einträge, 1 Seite |