- or download this
my %opts=(GetOptions(
'help|?' => \$help,
...
'user' => \$user,
'password' => \$password
));
- or download this
GetOptions (\%opts,
qw( help|h|?
...
user=s
password=s
));
- or download this
&Help;
}
- or download this
&Help;
}
...
else {
&Help;
}
- or download this
my $dbh;
my $DSN = "driver={SQL Server};Server=$opts{server};database=$database
+;";
...
else {
&Logger("ERROR - Cannot connect to DB: $dbh->errstr()\n");
}
- or download this
my $query = "select * from sometable";
my $sth = $dbh->prepare($query);
...
$sth->execute(@$rec);
}
$setsth->finish();
- or download this
$setsth->execute(@$rec); - or download this
$sth->execute(@$rec);