Roderick A. Anderson schreef:
> Short story usng the truncate method on a datetime object that was created
> with a format destroys/removes the format -- forever.
That's a bug. DT::truncate() copies the locale and the timezone, but
should also copy the formatter.
> Then while writng
> this message I found that when I try to create a copy ( well probably not
> as the results show otherwise ) that it is an alias/reference?
Yes. All objects in Perl are references; copying of objects by simple
assignment is always shallow.
> my $dt2 = $dt;
Try
my $dt2 = $dt->clone;
This will make a real copy: a second object with the same properties as
the first.
Eugene