<?xml version="1.0" encoding="windows-1252"?>
<node id="989671" title="Re^2: use Switch wierdness" created="2012-08-24 21:35:28" updated="2012-08-24 21:35:28">
<type id="11">
note</type>
<author id="385566">
tqisjim</author>
<data>
<field name="doctext">
&lt;p&gt;
It's not just the Switch module that breaks this.  Other modules seem to have the same effect.  Can someone else run this code and confirm if they have the same problem?
&lt;/p&gt;

&lt;code&gt;
use DBD::mysql ;

$perldata = bless { hello =&gt; 'world' }, 'superman' ;
# $perldata = { hello =&gt; 'world' } ;

sub test {
        my $o = shift ;
        warn $o ;
        my $m = bless { perldata =&gt; $o }, 'TQIS::test' ;
        return $m ;
        }

sub TQIS::test::DESTROY {
        my $self = shift ;
        warn $self-&gt;{perldata} ;
        }

$a = test( $perldata ) ;
$b = test( $perldata ) ;
$c = test( $perldata ) ;

&lt;/code&gt;
</field>
<field name="root_node">
989646</field>
<field name="parent_node">
989650</field>
</data>
</node>
