Reviews by Paul Hoffman

cpanratings
 

RSS

Data-FixedFormat (0.04) *****

It's a very handy module, and the author has added lots of tests.

Paul Hoffman - 2009-10-07T13:41:52 (permalink)

Was this review helpful to you?  Yes No

String-Divert (0.96) *****

Brilliant!

Paul Hoffman - 2007-01-27T12:24:55 (permalink)

1 out of 6 found this review helpful. Was this review helpful to you?  Yes No

Hash-Merge (0.07) ****

This module comes in very handy for those occasions where you have two (or more) hashes whose data you want to combine without clobbering duplicate key/value pairs. For example, merging { one => [ 1 ] } and { one => [ 2, 3 ] } yields { one => [ 1, 2, 3 ] }. Better yet, you control which hash (left or right) is given precedence in the case of scalar elements, so merging { one => 1 } and { one => 2 } can yield { one => 1 } or { one => 2 } depending on whether you set the precedence to left or right. Best of all, it works recursively with DWIMMERY! (Hint: to merge 3+ hashes, just do { $h = shift @hh; $h = merge($h, $_) foreach @hh }. One nit: the argument to set_behavior should be a string, e.g., Hash::Merge->set_behavior('RIGHT_PRECEDENT').)

Paul Hoffman - 2004-01-13T05:40:47 (permalink)

4 out of 4 found this review helpful. Was this review helpful to you?  Yes No