Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

class::makemethods::template::ref(3pm) [debian man page]

MakeMethods::Template::Ref(3pm) 			User Contributed Perl Documentation			   MakeMethods::Template::Ref(3pm)

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 o default Three-way (sorting-style) comparison. o equals Are these two objects equivalent? o 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.10.1 2004-09-06 MakeMethods::Template::Ref(3pm)

Check Out this Related Man Page

MakeMethods::Template::Global(3pm)			User Contributed Perl Documentation			MakeMethods::Template::Global(3pm)

NAME
Class::MakeMethods::Template::Global - Method that are not instance-dependent SYNOPSIS
package MyObject; use Class::MakeMethods::Template::Global ( scalar => [ 'foo' ] ); package main; MyObject->foo('bar') print MyObject->foo(); ... print $my_instance->foo(); # same thing DESCRIPTION
These meta-methods access values that are shared across all instances of your object in your process. For example, a hash_scalar meta- method will be able to store a different value for each hash instance you call it on, but a static_scalar meta-method will return the same value for any instance it's called on, and setting it from any instance will change the value that all other instances see. Common Parameters: The following parameters are defined for Static meta-methods. data The shared value. Standard Methods The following methods from Generic should be supported: scalar string number boolean bits (?) array hash tiedhash (?) hash_of_arrays (?) object instance array_of_objects (?) code code_or_scalar (?) See Class::MakeMethods::Template::Generic for the interfaces and behaviors of these method types. The items marked with a ? above have not been tested sufficiently; please inform the author if they do not function as you would expect. 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::Template::Generic for information about the various accessor interfaces subclassed herein. perl v5.10.1 2004-09-06 MakeMethods::Template::Global(3pm)
Man Page

7 More Discussions You Might Find Interesting

1. Solaris

what files need to copy when clone servers?

If I need to clone application server-A to server-B (same IP). What files that I must copy to server-B? server-A : Solaris8 and run application(bea-weblogic) server-B : Only Solaris8 install I think it should be. - O/S patches - /etc/system -- for kernel tunning. - /etc/shadow -... (3 Replies)
Discussion started by: arm_naja
3 Replies

2. SCO

Hard disk clone of OpenServer 5.0.0 didn't work, why?

Continuing saga of working on making a retail store more robust by creating a backup clone of the main server, a 1995 era :eek: PC running SCO OpenServer 5.0.0b and a discontinued Point of Sales (POS) software system. I have a PC of the same make and model. The CPU runs faster and it has a... (5 Replies)
Discussion started by: jgt10
5 Replies

3. HP-UX

How to clone a 382-workstations hdd?

Hi there, I got a pretty old HP 382 workstation, and the hdd is pretty LOUD ... ;) So I thought I clone it to an much quiter one. I tried this: - removed the loud hdd - connected it to an system running knoppix 7.0.4 (hdd is recognized with UFS filesystem; Clonezilla couldn't handle the... (9 Replies)
Discussion started by: pelegrine
9 Replies

4. UNIX for Advanced & Expert Users

Samba broken on clone Ubuntu

I configured freeradius version 2.2.0 running on Ubuntu 12.04 to authenticate against active directory and it is working fine until I decide to clone (vmware) the machine. Once the machine is clone I changed the IP address, hostname in (/etc/hosts and /etc/hostname) and also changed the name in... (1 Reply)
Discussion started by: hassan1
1 Replies

5. UNIX for Advanced & Expert Users

AutoSys

From where i can get complete Ref. pdf of AutoSys r11.3 any one got idea ? I cant find good document for that (2 Replies)
Discussion started by: ujjwal2120
2 Replies

6. AIX

How to clone an AIX 5.3?

Hello all, I am trying to clone an entire aix 5.3 machine , not sure on the procedure.Can anyone help on what can be done ?Thanks (9 Replies)
Discussion started by: gull05
9 Replies

7. Shell Programming and Scripting

Replace all string matches in file with unique random number

Hello Take this file... Test01 Ref test Version 01 Test02 Ref test Version 02 Test66 Ref test Version 66 Test99 Ref test Version 99 I want to substitute every occurrence of Test{2} with a unique random number, so for example, if I was using sed, substitution would be something... (1 Reply)
Discussion started by: funkman
1 Replies