The clone method takes an EDF::RecordKey and clones it according to the EDF::PVal and EDF::DVal contents of the EDF::RecordKey. The EDF::PVal and EDF::DVal values in the RecordKey are not shared between the original and the copy.
By contrast, EDF:Record:key creates a copy where EDF::PVal and EDF::DVal values are shared between the original and the copy.
my $key = shift; my $copy = $key->clone;
An EDF::RecordKey object.
A new EDF::RecordKey object.