CPAN Release DK::Business::Phonenumber, multi flavored validation of Danish phone numbers

In: Releases

30 Jun 2009

For about a year we have for using this small Data::FormValidator constraint extension we developed for use with telco a client.

It has finally been released to the CPAN.

The distribution by now contains 3 modules, representing 3 different approaches to validation of Danish phone numbers.

- Business::DK::Phonenumber, is a basic procedural implementation, exporting a validation subroutine.
- Data::FormValidator::Constraints::Business::DK::Phonenumber, is a package to integrate with the marvellous module Data::FormValidator
- Class::Business::DK::Phonenumber, is a object oriented implementation providing a class for handling phonenumber object

In addition to the 3 approaches listed above. The distribution offers:

- Generation of dummy phone numbers, which can be used for testing
- Pretty printing of phone numbers, so phone numbers, can be output and formatted using simple templates

This is the initial public release and it covers pretty much what we expect and set out too solve, ideas for improvements are more than welcome.

Business::DK::Phonenumber is the second open source project from logicLAB, which is developed on our Atlassian Jira Studio solution, so things might change overtime as we get more into using Jira Studio for both closed and open source projects, for now the following resources are available from our Business::DK::Phonenumber project web site (http://logicLAB.jira.com/browse/BDKPHN):

- Wiki
- SCM, Subversion, readonly
- Bug/Issue tracking, requires account for now, but we are working on that

Business::DK::Phonenumber is distributed under the Artistic License and can be downloaded from your local CPAN mirror or via: search.cpan.org.

2 Responses to CPAN Release DK::Business::Phonenumber, multi flavored validation of Danish phone numbers

Avatar

Michael Zedeler

July 1st, 2009 at 16:37

perl -MBusiness::DK::Phonenumber -e ‘print Business::DK::Phonenumber::validate(“88888888-432324423324″), “\n”‘
1

\b is fancy but surely not needed there. What happened to good old ^ and $?

Avatar

jonasbn

July 17th, 2009 at 09:25

Hi Michael,

You clearly found a bug, the example you provide works for me too. I isolated the issue in a test and here I cannot replicate it. I will spend some more time investigating this.

The \b is a typo, it should be a \z, ^ and $ are not recommended as they also can carry different meanings in regular expressions, where as \A and \z are unambiguous.

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

Calendar

June 2009
M T W T F S S
« Jan   Jul »
1234567
891011121314
15161718192021
22232425262728
2930