in reply to Routine stopped working

time2str() is in Date::Format and it doesn't need Date::Calc.

I don't see how an error can happen on Date::Calc because it is not used.

use strict; use warnings; use Date::Format; #use Date::Calc qw(Add_Delta_Days); ##not needed my $date = sprintf(time2str("%D", time)); print $date; # 01/19/24
Update: check your line numbering

Replies are listed 'Best First'.
Re^2: Solved Routine stopped working
by oldcity (Novice) on Jan 23, 2024 at 17:51 UTC

    Found that this was the culprit. Fixed problem much research.

    $date = sprintf(time2str("%D", time));