in reply to Re: Moose::Role to provide DBI interface
in thread Moose::Role to provide DBI interface

Ah, thanks, AC. But you know, like an ancient computer, I can only work on one thing at a time. This is more of a simple, academic exercise with Moose. Now, if your advice were to have been learn how to program AI first and have this all done for me automatically, that might have been worth something.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: Moose::Role to provide DBI interface

Replies are listed 'Best First'.
Re^3: Moose::Role to provide DBI interface
by Anonymous Monk on Feb 08, 2017 at 20:53 UTC
    "This is more of a simple, academic exercise with Moose."

    Then I suggest you leave the Database component out of this until you learn SQL.

      As mentioned in OP, I'm trying to ensure there is nothing technically wrong with setting up a new DB handler when switching to a new database. Since I'm not an expert on the underpinnings of OO and DBI, I'm worried there might be some kind of weird interaction that I might be missing. Maybe this might create database connections that never die, for example. I just don't know. I've come to learn that I'll often go down paths that lead to trouble. The benefit is I learn a lesson, but at the expense of a lot of time lost. I'm just trying to avoid that pain. I also enjoy seeing ideas from other Monks on my code. I always learn something new when I post here like the suggestion to use a config file above, which I hadn't thought of. I'm a hobbyist. But if you want to take me under your wing and turn me into a programming guru, let me know.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

        "I'm trying to ensure there is nothing technically wrong with setting up a new DB handler when switching to a new database."

        This statement shows that you really don't understand the role of a Relational Database, much less how to interface with Perl. Please stop telling us HOW you want to do stuff and just tell us WHAT you are trying to do.