[Chicago-talk] Dreamweaver perl and mysql
Andy_Bach at wiwb.uscourts.gov
Andy_Bach at wiwb.uscourts.gov
Thu Jul 30 10:53:35 PDT 2015
On Thu, Jul 30, 2015 at 9:14 AM, Richard Reina <gatorreina at gmail.com>
wrote:
When I try:
#!/usr/bin/perl
# In your Dancer app,
use Dancer::Plugin::SimpleCRUD;
That second comment is the key - not from the command line, but in a
Dancer app. line 199 is
# Given the settings to use, try to get a database connection
sub _get_connection {
my ($settings, $logger, $hook_exec) = @_;
# Assemble the DSN:
my $dsn = '';
my $driver = '';
if ($settings->{dsn}) {
$dsn = $settings->{dsn};
($driver) = $dsn =~ m{^dbi:([^:]+)}i;
} else {
$dsn = "dbi:" . $settings->{driver}; <-- line 199
attempting to connect to your backend via DBI using a config settings
setup.
----------------------
Andy Bach
Systems Mangler
Internet: andy_bach at wiwb.uscourts.gov
Voice: (608) 261-5738, Cell: (608) 658-1890
"Only the insane take themselves quite seriously." Max Beerbohm
"Life is far too important to be taken seriously." Oscar Wilde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20150730/28a789d3/attachment.html>
More information about the Chicago-talk
mailing list