Subject: | Time::Format is not fork safe |
I think this may be related to rt#74880, but honestly I didn't quite understand what the reporter for that issue was getting at. Very simple and easy to reproduce with this one-liner:
% perl -MTime::Format -E 'fork(); Time::Format::time_format()'
Goto undefined subroutine &Time::Format::time_format_perlonly at /usr/local/lib/perl/Time/Format.pm line 79, <DATA> chunk 1.
If you call time_format() BEFORE the fork then it works just fine. I think this maybe because the DATA file handle is shared and which ever process gets there first slurps the whole thing in and so it is not available to the other process.