Reviews by Steffen Beyer

cpanratings
 

RSS

Readonly (1.03)

An alternative to this is authors/id/S/ST/STBEY/Internals-1.1.tar.gz.
More low-level, more freedom, more fine-grained control, but also more hassle and more dangerous.

Date-Pcalc (6.0)

Both problems

A pure-Perl implementation of Date::Calc, but no longer updated since 2001. Dan Dascalescu - 2009-07-31 19:38:04

A very good replacement for the original Date::Calc when you don't have access to a compiler on the machine. But some important functions from Date::Calc are missing in Date::Pcalc, and it seems that the author is not going to fix this. That's really bad. Andy - 2006-01-19 13:53:07

have been fixed in version 6.0.

Date-Calc (5.8)

Dave Rolsky wrote on 2003-08-13 13:56:27:

The interface is rather awkward, as multiple operations require
you to sling around many parameters, because the functions return
list of values (like year, month, day) which you have to track.

The reason for this is that it makes one-liners such as this possible:

sub Mktime # in: year,month,day,hour,min,sec out: secs since epoch
{

return Date_to_Time(Add_Delta_YMDHMS(@_,map(-$_,(Timezone(Date_to_Time(@_)))[0..5])));
}

Bit-Vector (6.9)

Tip (did not make it into the docs yet):

If you want to make the output from Data::Dumper more useful when dumping data structures containing Bit::Vector objects, include the following snippet (uncomment one of the three formats depending on your preference) at the top of your code:

use Bit::Vector;
use Data::Dumper;
#sub Bit::Vector::Freeze { my $s = $_[0] . "->[" . $_[0]->Size() . "," . $_[0]->to_Hex() . "]"; return \$s; } # not thawable, only for display

sub Bit::Vector::Freeze { my $s = $_[0] . "->[" . $_[0]->Size() . "," . $_[0]->to_Dec() . "]"; return \$s; } # not thawable, only for display
#sub Bit::Vector::Freeze { my $s = $_[0] . "->[" . $_[0]->Size() . "," . $_[0]->to_Enum() . "]"; return \$s; } # not thawable, only for display
$Data::Dumper::Freezer = 'Freeze';