Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • I can't tell if I'm being really dense, but what's the difference between your desired output, and this...?

    $d = DateTime::Duration->new( seconds => 23.127 );
    print $d->delta_seconds; # 23.127

    In which case, wouldn't this provide the 'natural' method name...

    *DateTime::Duration::in_seconds = \&DateTime::Duration::delta_seconds;