in reply to How to format dates prior to 1970?
Your code works for me on both Perl 5.22 on MacOS X and on Perl 5.16.3 on Ubuntu Linux:
$ perl 1194689.pl 1969-05-10 1969-05-10
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom