Bug#762816: shouldn't that be $diff, not $date_diff?
積丹尼 Dan Jacobson
jidanni at jidanni.org
Thu Sep 25 09:33:29 UTC 2014
Package: perl-doc
Version: 5.20.1-1
Severity: wishlist
File: /usr/share/perl/5.20.1/pod/perlfaq4.pod
We read
my $diff = $date1 - $date2;
print "The difference is ", $date_diff->days, " days\n";
shouldn't that be $diff, not $date_diff?
P.S., weird indenting on Time::Seconds"
$val->minutes;
$val->hours;
$val->days;
$val->weeks;
$val->months;
$val->financial_months; # 30 days
$val->years;
More information about the Perl-maintainers
mailing list