--- /dev/null
+# Version control files and dirs.
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+
+# Makemaker generated files and dirs.
+^MANIFEST\.
+^Makefile$
+^blib/
+^MakeMaker-\d
+
+# Temp, old and emacs backup files.
+~$
+\.old$
+^#.*#$
+^\.#
--- /dev/null
+# http://module-build.sourceforge.net/META-spec.html
+#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+name: Class-Modular
+version: 0.1
+version_from: lib/Class/Modular.pm
+installdirs: vendor
+requires:
+
+distribution_type: module
+generated_by: ExtUtils::MakeMaker version 6.17
--- /dev/null
+#! /usr/bin/perl
+
+use ExtUtils::MakeMaker;
+
+WriteMakefile(NAME => 'Class::Modular',
+ VERSION_FROM => 'lib/Class/Modular.pm',
+ );
# under the terms of the GPL version 2, or any later version. See the
# file README and COPYING for more information. Copyright 2003 by Don
# Armstrong <don@donarmstrong.com>.
-# $Id: Modular.pm,v 1.8 2003/12/09 02:00:10 don Exp $
+# $Id$
package Class::Modular;
use Carp;
-use Data::Copy qw(deep_copy); # Used for deep copying objects
+use Storable qw(dclone); # Used for deep copying objects
BEGIN{
- ($VERSION) = q$Revision: 1.8 $ =~ /\$Revision:\s+([^\s+])/;
+ $VERSION = '0.1';
+ ($REVISION) = q$LastChangedRevision$ =~ /\$LastChangedRevision:\s+([^\s+])/;
$DEBUG = 0 unless defined $DEBUG;
}
bless $clone, ref($self);
# copy data structures at this level
- $clone->{_methodhash} = deep_copy($self->{_methodhash});
- $clone->{_subclasses} = deep_copy($self->{_subclasses});
+ $clone->{_methodhash} = dclone($self->{_methodhash});
+ $clone->{_subclasses} = dclone($self->{_subclasses});
foreach my $subclass (keys %{$self->{_subclasses}}) {
# use eval to try and call the subclasses _clone method.