cpan DateTime-Format-Strptime 1.0200

latest releases: 1.79, 1.78, 1.77...
20 years ago
  • the 'Proclavity to croak' release

    • The docs for Time::Local talk about the 'proclavity to croak'
      which basically means the module croaks easily. So did this
      one until now.

    Until now, if you allowed a user to specify a pattern and they
    entered one that was non parsable, this module would croak
    causing your script to croak. This is a Bad Thing (tm).

    The behaviour now remains the same, however if you set
    $DateTime::Format::StrpTime::CROAK to false, methods will
    return undef rather than croaking.
    $DateTime::Format::StrpTime::errmsg will tell you what went
    wrong.

    The default is to continue to croak. This means you have to
    delibrately turn it off. Hopefully you'll change you script
    to do this at the same time you change it to check the
    return values of the methods :)

Don't miss a new DateTime-Format-Strptime release

NewReleases is sending notifications on new releases.