Hello Monk’s. I have been tasked with updating a large windows web application from Perl 5.10 32bit to the latest Perl 5.26.1 64bit, all has gone well until I get to one problem. Under 5.10 the original programmer stored the DBI connection in a custom $ENV variable which is then used in many files for database calls and due to the amount of calls it would be extremely hard to update it everywhere. I wanted to show the dumper information and see if maybe I could understand it better and if there was a solution without modifying all of the files. Example for the variable $ENV{'dbh_connection'}
For Perl 5.10 32 bit, the dumper returns:
$foo = bless( {}, 'DBI::db' );
For Perl 5.26.1 64 bit, the dumper returns:
$foo = 'DBI::db=HASH(0x4ad63e8)';
If I use a standard variable such as $db_con it will return:
$foo = bless( {}, 'DBI::db' );
Thank you ahead of time for all of your help and information.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.