in reply to Re^2: Arithmetic bug within Time:Piece?
in thread Arithmetic bug within Time:Piece?
Could someone please enlighten me if this is an (old) problem?
I had no problems to store an object in a constant.
use strict; use warnings; { package MY_TIME; sub print_sec { my $self =shift; print $self->[0]; } } use constant ONE_HOUR => bless [3600], "MY_TIME"; ONE_HOUR->print_sec; __END__ 3600
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Arithmetic bug within Time:Piece?
by Anonymous Monk on Oct 03, 2015 at 00:17 UTC | |
by LanX (Saint) on Oct 03, 2015 at 01:55 UTC |