You either have two functions named strftime
(but then you would probably have another warning too), or you used strftime
before it was declared.
I always specify my imports explicitly, so I never run into the first problem.
use Date::Format qw( );
use POSIX qw( strftime );