Public Scratchpad | Download, Select Code To D/L |
I've been banging my head on the table with Apache::Session::MySQL today. Consider:
This doesn't work from mod_perl, because the untie throws an exception:eval { ( my %session, $ok ); $ok = tie( %session, 'Apache::Session::MySQL', undef, ... ); if ( $ok ) { ... do something with %session ... } untie %session; }
untie attempted while 1 inner references still exist at foo.pl line 250.Since I don't use any explicit references to %session, this caught me by surprise. Can you see the bug?
<Reveal this spoiler or all in this thread>