ewaters/net-amqp — pull request #5 by dconlon (2012-04-23 15:52:48+00:00)
Title: Pack unit values as unit in tables and arrays

Hello,

Would you accept this patch to pack whole numbers as unit data type when encoding tables and arrays?

I'm not entirely happy with it, but I think without changing the API it'll always be a suboptimal solution given that the values come through without any type info. Regex seems the preferred way to determine the data type in this scenario( http://perldoc.perl.org/perlfaq4.html#How-do-I-determine-whether-a-scalar-is-a-number%2fwhole%2finteger%2ffloat%3f) but I wasn't sure what your intention for the FIXME was.

Thanks in advance for considering.

Dan