Package: perl-Clone-PP (1.07-bp156.3.1)
Recursively copy Perl datatypes
This module provides a general-purpose clone function to make deep copies of Perl data structures. It calls itself recursively to copy nested hash, array, scalar and reference types, including tied variables and objects. The clone() function takes a scalar argument to copy. To duplicate arrays or hashes, pass them in by reference: my $copy = clone(\@array); my @copy = @{ clone(\@array) }; my $copy = clone(\%hash); my %copy = %; The clone() function also accepts an optional second parameter that can be used to limit the depth of the copy. If you pass a limit of 0, clone will return the same value you supplied; for a limit of 1, a shallow copy is constructed; for a limit of 2, two layers of copying are done, and so on. my $shallow_copy = clone( $item, 1 ); To allow objects to intervene in the way they are copied, the clone() function checks for a couple of optional methods. If an object provides a method named 'clone_self', it is called and the result returned without further processing. Alternately, if an object provides a method named 'clone_init', it is called on the copied object before it is returned.
Package information
- Homepage
- [http://search.cpan.org/dist/Clone-PP/]
- License
- Artistic-1.0 or GPL-1.0+
- Mainteneur du paquet aval
- Inconnu : non déclaré dans la source indexée
- Paquet source
- [perl-Clone-PP]
- Software project
- [perl-Clone-PP]
Versions and downloads for perl-Clone-PP
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 1.07-bp156.3.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 17 KiB | 13 KiB | list of files | perl-Clone-PP-1.07-bp156.3.1.noarch.rpm |
About these downloads
Chaque ligne est une métadonnée d'index pour une version, une architecture, une suite et un dépôt. Noms, URL et tailles viennent de la source ; un lien est un emplacement de récupération mutable, pas une redistribution OpenFactory.
Dependencies and recommendations for perl-Clone-PP
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
Chemins de fichiers du paquet (7)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/Clone
- /usr/lib/perl5/vendor_perl/5.26.1/Clone/PP.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-Clone-PP
- /usr/share/doc/packages/perl-Clone-PP/Changes
- /usr/share/doc/packages/perl-Clone-PP/README
- /usr/share/man/man3/Clone::PP.3pm.gz
Field source: openSUSE Leap 15.6 OSS
