Created
February 23, 2014 07:06
-
-
Save karupanerura/9168156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use 5.14.0; | |
use DBIx::Sunny; | |
my $dbh = DBIx::Sunny->connect("dbi:mysql:database=test", "root", ""); | |
my ($database) = map s/^database=//r, grep /^database=/, DBIx::Sunny->parse_dsn($dbh->connect_info->[0]); | |
say $database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment