You would be hard pressed to pick a more difficult task upon which to cut your teeth. The DBIx::Password module is in a word poorly designed. Essentially there is a configuration script within the Makefile.PL that you run on installation that takes some user input and then uses Data::Dumper to dump the configuration back into DBIx::Password.pm. Personally I think it is a horrible way to do it. Anyway all the configuration is in a variable called $virtual1 within the Password.pm module

my $virtual1 = { 'user' => { 'driver' => 'mysql', 'username' => 'username', 'attributes' => { 'extra_attrib' => 'attrib_ +value' }, 'port' => 'port', 'database' => 'databasename', 'password' => 'password', 'host' => 'machine_name', 'connect' => 'DBI:mysql:database=databasenam +e;host=machine_name;port=port' } };

There are no methods provided to modify this data structure after the fact so you will have to open the Password.pm file. Extract the data-structure and probably eval it into a variable. Modify the data structure. Dump it back out aka the original.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


In reply to Re: How do I write what I need, given that I know nothing at all about perl. by tachyon
in thread How do I write what I need, given that I know nothing at all about perl. by Vladinator

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.