Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

clone(3) [centos 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-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)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Image copy (Clone)

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)
Discussion started by: cicalons
2 Replies

2. Solaris

Clone disk for Sun Blade 2000

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)
Discussion started by: rioria
1 Replies

3. 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

4. Red Hat

cloning a server

I wish to clone a RedHat EL5 server. What's the easiest way to do this? Thanks :) (4 Replies)
Discussion started by: wazzu62
4 Replies

5. Solaris

How to clone enter harddisk on Sun Sparc20?

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)
Discussion started by: Ron Macam
24 Replies

6. 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

7. AIX

Mount a SAN LUN which contains clone copy - AIX 6.1

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)
Discussion started by: gowthamakanthan
3 Replies

8. 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

9. Shell Programming and Scripting

Setting letter as variable

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)
Discussion started by: ashanabey
6 Replies

10. UNIX for Advanced & Expert Users

Clone mounts as is

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)
Discussion started by: baanprog
3 Replies

11. Red Hat

Redhat Clone

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)
Discussion started by: da2013
3 Replies

12. UNIX for Dummies Questions & Answers

Clone redhat to another PC

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)
Discussion started by: aitv
9 Replies

13. 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

14. Red Hat

Looking for Reccomendations to Clone RHEL 7

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)
Discussion started by: Steve_9999
3 Replies