From 50b165c333f73e2ecbb8cc1a0d92c5f7347638a1 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 30 Mar 2015 15:39:09 +0300 Subject: [PATCH] Make DBIx::Simple instance global --- lib/Gruntmaster/Data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 846d772..067d52c 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -42,7 +42,7 @@ my %statements = ( job_full_sth => 'SELECT * FROM jobs WHERE id = ?', ); -my $db; +our $db; sub init { $db = DBIx::Simple->new(@_); -- 2.39.2