Class::MakeMethods::Template::Ref man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

MakeMethods::Template:User(Contributed Perl DocumMakeMethods::Template::Ref(3)

NAME
       Class::MakeMethods::Template::Ref - Universal copy and compare methods

SYNOPSIS
	 package MyObject;
	 use Class::MakeMethods::Template::Ref (
	   'Hash:new'	   => [ 'new' ],
	   clone	   => [ 'clone' ]
	 );

	 package main;

	 my $obj = MyObject->new( foo => ["Foozle", "Bozzle"] );
	 my $clone = $obj->clone();
	 print $obj->{'foo'}[1];

DESCRIPTION
       The following types of methods are provided via the Class::MakeMethods
       interface:

   clone
       Produce a deep copy of an instance of almost any underlying datatype.

       Parameters:

       init_method

       If defined, this method is called on the new object with any arguments
       passed in.

   prototype
       Create new instances by making a deep copy of a static prototypical
       instance.

       Parameters:

       init_method

       If defined, this method is called on the new object with any arguments
       passed in.

   compare
       Compare one object to another.

       Templates

       ·   default

	   Three-way (sorting-style) comparison.

       ·   equals

	   Are these two objects equivalent?

       ·   identity

	   Are these two references to the exact same object?

SEE ALSO
       See Class::MakeMethods for general information about this distribution.

       See Class::MakeMethods::Template for more about this family of
       subclasses.

       See Class::MakeMethods::Utility::Ref for the clone and compare
       functions used above.

perl v5.14.2			  2004-09-06	 MakeMethods::Template::Ref(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net