Clone(3) User Contributed Perl Documentation Clone(3)NAME
Clone - recursively copy Perl datatypes
SYNOPSIS
package Foo;
use parent 'Clone';
package main;
my $original = Foo->new;
$copy = $original->clone;
# or
use Clone qw(clone);
$a = { 'foo' => 'bar', 'move' => 'zig' };
$b = [ 'alpha', 'beta', 'gamma', 'vlissides' ];
$c = Foo->new;
$d = clone($a);
$e = clone($b);
$f = clone($c);
DESCRIPTION
This module provides a clone() method which makes recursive copies of nested hash, array, scalar and reference types, including tied
variables and objects.
clone() takes a scalar argument and duplicates it. To duplicate lists, arrays or hashes, pass them in by reference. e.g.
my $copy = clone (@array);
# or
my %copy = %{ clone (\%hash) };
SEE ALSO
Storable's dclone() is a flexible solution for cloning variables, albeit slower for average-sized data structures. Simple and naive
benchmarks show that Clone is faster for data structures with 3 or less levels, while dclone() can be faster for structures 4 or more
levels deep.
COPYRIGHT
Copyright 2001-2012 Ray Finch. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Ray Finch "<rdf@cpan.org>"
Breno G. de Oliveira "<garu@cpan.org>" and Florian Ragwitz "<rafl@debian.org>" perform routine maintenance releases since 2012.
perl v5.16.3 2012-12-09 Clone(3)
Check Out this Related Man Page
Clone(3) User Contributed Perl Documentation Clone(3)NAME
Clone - recursively copy Perl datatypes
SYNOPSIS
package Foo;
use parent 'Clone';
package main;
my $original = Foo->new;
$copy = $original->clone;
# or
use Clone qw(clone);
$a = { 'foo' => 'bar', 'move' => 'zig' };
$b = [ 'alpha', 'beta', 'gamma', 'vlissides' ];
$c = Foo->new;
$d = clone($a);
$e = clone($b);
$f = clone($c);
DESCRIPTION
This module provides a clone() method which makes recursive copies of nested hash, array, scalar and reference types, including tied
variables and objects.
clone() takes a scalar argument and duplicates it. To duplicate lists, arrays or hashes, pass them in by reference. e.g.
my $copy = clone (@array);
# or
my %copy = %{ clone (\%hash) };
SEE ALSO
Storable's dclone() is a flexible solution for cloning variables, albeit slower for average-sized data structures. Simple and naive
benchmarks show that Clone is faster for data structures with 3 or less levels, while dclone() can be faster for structures 4 or more
levels deep.
COPYRIGHT
Copyright 2001-2013 Ray Finch. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Ray Finch "<rdf@cpan.org>"
Breno G. de Oliveira "<garu@cpan.org>" and Florian Ragwitz "<rafl@debian.org>" perform routine maintenance releases since 2012.
perl v5.18.2 2013-12-07 Clone(3)
Hi all,
I need to perform a physical copy of a DIGITAL(HP) Server machine:
is it possibe to do this in order to have an exact copy ( a clone to intend of)to another machine: including also the configuration files and the network configuration of the previous machine?.
Someone said me I can use... (2 Replies)
Hai ......... my name Rio,
I want to clone my harddisk at Sun Balade 2000 server with Solaris 8 OS, my question is :
a. what kind method for making backup or clonning disk ?
b. what method more easier , quick but still reliable ?
c. how to proceed it ?
Thanks (1 Reply)
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)
Hi mates,
well before posting my problem, i really searched hi and low for some ideas, but sad to say none of them worked, including dd command.
My problem is that i have 2 harddisk, 1 in use and 1 for spare. The one im using got crashed and now im using my spare harddisk with all the... (24 Replies)
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)
Hello Everyone,
Can someone help me to mount a SAN hdisk which contains a clone data copy(san) of the remote server to the another machine. Both servers are running in AIX.
Thanks in advance !
Regards,
Gowtham.G (3 Replies)
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)
I need to pass letter like "c" for "-copy" and need to read by variable $sel_mod, My I know the good way of writing the script.
Example:
Select one of the Clone Mode ( '-copy', '-differential', '-precopy', '-nopcopy')
Type the Clone mode : c
Thanks in advance,
Ashan
... (6 Replies)
Hello,
Iam trying to clone AS IS two mounts like below
/class_test/sa
/class_dev/fd
from one server onto another.
I want to use tar and gzip to compress. Please let me know the options I have to use.
Also I want to untar it in the destination server, so let me know how to do... (3 Replies)
What is the best method to use to clone a Redhat machine, to ensure all software and config can be easily installed on new hardware?
Thank you! (3 Replies)
Hi,
I'm a new user of this forum and I'm not an expert of linux.
I have a broken old pc with red hat linux, I clone hdd to another pc with different mainboard and it's ok but it has only one problem, the usb ports not work.
In the boot this message appears:
... (9 Replies)
Hello,
We are installing a group of stand-alone RHEL 7.1.3 servers for a new application in our environment. We are new to RHEL and would like to know what is the best way to clone the OS once we have the 1st install in the LAB with all the apps installed and passed all security checks. From... (3 Replies)