#perl perl5 simpledb aws
Explore tagged Tumblr posts
Link
Entered a pull request on Git for SimpleDB::Class
domain_prefix fix
domain_prefix had a default of undef. This actually causes has_domain_prefix to always return true.
From Moose docs:
A predicate method tells you whether or not a given attribute is currently set. Note that an attribute can be explicitly set to undef or some other false value, but the predicate will return true.
This was causing the following warning when creating a domain and using items:
Use of uninitialized value in concatenation (.) or string at /home/kmcgrath/SimpleDB-Class/lib/SimpleDB/Class.pm line 303.
Decimal Type Addition
The new type allows for a number with precision after the decimal point to be used in comparisons and ordering. Good for storing prices, geo coordinates, etc...
The implementation basically keeps the same %015d format Int uses for the characters to the left of the decimal point and allows any number of characters to the right of the decimal point.
Added POD and tests.
Script Using Decimals
On Gist: https://gist.github.com/1159414
4 notes
·
View notes