Zefram wrote:
That doesn't do what was requested: if you start with a Sunday then it
moves a week back rather than just going to the beginning of the day.
But this will work:

$dt->add( days => 1 )->truncate( to => 'week' )->subtract( days => 1 );

Ahhh! I knew there was something more complex to it! Thanks Zefram, that fixes the problem I had with the task originally.

Cheers!
Rick Measham

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to