Clone - ネストしているオブジェクトの再帰的コピーのためのPerl拡張
use Clone; push @Package::A::ISA, 'Clone';
$a = new Package::A; $b = $a->clone; # あるいは use Clone qw(clone);
$b = clone($a,1);
Cloneモジュールはネストし、tieされている変数も含めて、 ハッシュ、配列、そしてスカラのオブジェクトの再帰的なコピーを作成する cloneメソッドを提供します。オプションのパラメータによってコピーの深さを 制限することが出来ます。
Ray Finch, ray@classmates.com
Copyright 2000 Ray Finch.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), Storable(3).