Clone man page on ElementaryOS

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

Clone(3pm)	      User Contributed Perl Documentation	    Clone(3pm)

       Clone - recursively copy Perl datatypes

	 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);

       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) };

       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

       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.

       Ray Finch "<>"

       Breno G. de Oliveira "<>" and Florian Ragwitz
       "<>" perform routine maintenance releases since 2012.

perl v5.18.1			  2013-12-07			    Clone(3pm)

List of man pages available for ElementaryOS

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]
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