[forwarded for discussion] ---------- Forwarded message ---------- Date: Thu, 15 Jul 2004 16:07:22 -0400 (EDT) From: Michael_G_Schwern via RT <[EMAIL PROTECTED]> To: undisclosed-recipients: ; Subject: [cpan #6980] $d->day(1); == $d->set(day => 1);
This message about DateTime was sent to you by MSCHWERN <[EMAIL PROTECTED]> via rt.cpan.org Full context and any attached attachments can be found at: <URL: https://rt.cpan.org/Ticket/Display.html?id=6980 > Its rather odd to have one interface style for getting and a different one for setting. my $day = $d->day; # get $d->set(day => 1); # set To make things confusing, some accessors do accept arguments. ymd, hms, etc... $d->day(1) and friends should be the equivalent of $d->set(day => 1) to make the interface consistent and obvious.