I am experiencing a bug that I find difficult to explain.
(in cleanup) Not a reference to a Digest::MD5 object at /export/home/n
+arse/cvs/plord/lib/Games/LORD/Locations/Helper/Menu.pm line 422.
I have an object (Player.pm) that uses Digest::MD5 to encrypt passwords before they are stored in a database. This is the ONLY module that uses Digest::MD5. This non-fatal warning is triggered at some points where this object is passed around in a hash as a method parameter. Menu.pm, line 422 looks like this:
if ( not defined $input or $input eq "" )
{ return $hidden_actions{ DEFAULT } -> ( %args ) }
where %args contains the Digest::MD5 using Player object.
This bug is not exclusive to this location, it seems to occur at various points where similar parameter passing takes place. One notable point is:
delete $data -> {opponent};
where $data -> {opponent} is another such Player object. I do not believe the bug occurs until after this point. After this, all Player objects appear to be affected by this bug. $data -> {opponent} is never again used after this point so it is not a simple issue of undefined values.
Digest::MD5 has both an OOP and Exporter use and I have tried both with no change in operation. Is this a bug with Digest::MD5? Am I somehow breaking its namespace by using delete on my own bless object?
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.