Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Format-Strptime CPAN distribution.

Report information
The Basics
Id: 69793
Status: resolved
Priority: 0/
Queue: DateTime-Format-Strptime

People
Owner: Nobody in particular
Requestors: BRAD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Input checking on format_datetime method
G'day, This is not a critical bug at all, more a nice-to-have when debugging my own code. If you pass format_datetime a scalar value rather than an object, a runtime error occurs: Can't call method "clone" without a package or object reference at /lib/site_perl/5.12.3/DateTime/Format/Strptime.pm line 781. This is not as immediately useful when debugging as a croak() would be - any chance of that being added? e.g. line 779 croak 'No object passed to format_datetime' unless ref($dt); No object passed to format_datetime at /lib/site_perl/5.12.3/A/Nother/Module.pm line 48 Cheers Brad