Query: clone
OS: suse
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Clone(3) User Contributed Perl Documentation Clone(3)NAMEClone - recursively copy Perl datatypesSYNOPSISuse Clone; push @Foo::ISA, 'Clone'; $a = new Foo; $b = $a->clone(); # or use Clone qw(clone); $a = { 'foo' => 'bar', 'move' => 'zig' }; $b = [ 'alpha', 'beta', 'gamma', 'vlissides' ]; $c = new Foo(); $d = clone($a); $e = clone($b); $f = clone($c);DESCRIPTIONThis 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 an optional parameter that can be used to limit the depth of the copy. To duplicate lists, arrays or hashes, pass them in by reference. e.g. my $copy = clone (@array); # or my %copy = %{ clone (\%hash) }; For a slower, but more flexible solution see Storable's dclone().AUTHORRay Finch, rdf@cpan.org Copyright 2001 Ray Finch. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.SEE ALSOStorable(3). perl v5.12.1 2009-01-20 Clone(3)
| Related Man Pages | 
|---|
| clone(3) - centos | 
| bio::map::clone(3pm) - debian | 
| clone::pp(3pm) - debian | 
| moosex::attribute::chainedclone(3pm) - debian | 
| moosex::clone(3pm) - debian | 
| Similar Topics in the Unix Linux Community | 
|---|
| Optimum blocksize to clone a disk? | 
| Solaris 8 Clone - Help | 
| Mounting a disk clone | 
| Clone or mirror your AIX OS larger disk to smaller disk ? | 
| Clone redhat to another PC |