EDF::RecordKey::clone method

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.

Example Usage

my $key = shift;
my $copy = $key->clone;

Input Arguments

An EDF::RecordKey object.

Return Values

A new EDF::RecordKey object.