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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |