CPAN Feature Release Business::DK::CVR 0.05 – OOP and other goodness

In: Releases

6 Nov 2009

The Perl module Business::DK::CVR can be used to validate Danish CVR (VAT) numbers. This release introduces new features, somewhat alpha. One feature is integration with Mark Stosberg’s Data::FormValidator. So it is easier to integrate CVR validation with Data::FormValidator with standard constraints. This is experimental and it might get extended in the future, but in general it works as of now.

A class implementation has also been added. Introducing Class::Business::DK::CVR. This gives the user the ability to work with CVR objects. This is our first implementation using David Golden’s Class::InsideOut. The concepts behind the implementation are:

- Encapsulation of data
- Construction or fail

So when constructing an object you either succeed and get a valid CVR object or it fails. You then have nice encapsulated CVR number instead of a string, which could accidentally change.

The distribution can be released from: http://search.cpan.org/~jonasbn/Business-DK-CVR/ or your local CPAN mirror.

Source code is available from: http://logicLAB.jira.com/svn/BDKCVR/

Project homepage: http://logiclab.jira.com/browse/BDKCVR/

Feedback and patches more than welcome,

Comment Form

About this blog

This blog acts as a channel for communicating logicLAB’s open source activities. Announcements on open source initiatives, involvements and releases of open source distributions of software products, projects and applications.

Photostream

  • jonasbn: I have made a release of Bundle::JONASBN (0.05), which only holds a notice of the deprecation of Bun [...]
  • Shuck & Awe #10: Hunting for Perl | The Pythian Blog: [...] week we also had the 2010 installment of YAPC::EU, which took place this year in Pisa. Again, [...]
  • jonasbn: Thanks, This has been fixed. Permissions was not set correctly – sorry for the inconvenience. jo [...]
  • anon: The last link only goes to a page with a login form. [...]
  • jonasbn: Oops there was one funny thing from the Wiki (http://conferences.yapceurope.org/hack2010dk/wiki) "Un [...]