Make DBIx::Simple instance global
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 30 Mar 2015 12:39:09 +0000 (15:39 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 30 Mar 2015 12:39:09 +0000 (15:39 +0300)
lib/Gruntmaster/Data.pm

index 846d7721f21748735910c86d7bc7de3e930d29bd..067d52c2635cf79c41acf9f6c9d0e3162d1df5ff 100644 (file)
@@ -42,7 +42,7 @@ my %statements = (
        job_full_sth => 'SELECT * FROM jobs WHERE id = ?',
 );
 
-my $db;
+our $db;
 
 sub init {
        $db = DBIx::Simple->new(@_);
This page took 0.010688 seconds and 4 git commands to generate.