Sample code for 30+ languages & platforms
Perl

Replace Deprecated GetExpirationDt

Shows how to replace the deprecated GetExpirationDt method.

Chilkat Perl Downloads

Perl
use chilkat();

$cache = chilkat::CkCache->new();

# ....
# ....

$cache_item_key = "xyz";

# Instead of this:
# dt1 is a CkDateTime
$dt1 = $cache->GetExpirationDt($cache_item_key);

# Do this:
$dt2 = chilkat::CkDateTime->new();
$dt2->SetFromRfc822($cache->getExpirationStr($cache_item_key));