<?xml version="1.0" encoding="windows-1252"?>
<node id="358273" title="davido's scratchpad" created="2004-06-01 13:18:21" updated="2005-08-12 00:34:41">
<type id="182711">
scratchpad</type>
<author id="281137">
davido</author>
<data>
<field name="doctext">
&lt;c&gt;
package A;

sub new {
  my $class = shift;
  print 'Hello from ' . $class . "\n";
  return bless {}, $class;
}

sub DESTROY {
  my $self = shift;
  print "A::DESTROY called from " . ref($self) . "\n";
}

package B;

our @ISA = qw( A );

sub DESTROY {
  my $self = shift;
  print "B::DESTROY called from " . ref($self) . "\n";
  return $self-&gt;SUPER::DESTROY;
}

package main;

my $this = A-&gt;new();
my $that = B-&gt;new();

&lt;/c&gt;</field>
</data>
</node>
