Array-Reform reviews

RSS | Module Info | Add a review of Array-Reform

Array-Reform (1.03) **

This module has been written by someone who doesn't have much idea of how Perl's module export mechanism works. The interface is therefore horribly confusing. Some of the major problems:

* It exports one of its functions (reform) on request, but all of the examlpes in the docs show it being called as a class method.

* Because the subroutines expect to be called as class methods they all expect a useless first parameter which is always ignored.

* The subroutines have prototypes. The author obviously doesn't realise that prototypes are ignored on method calls.

All in all the author has tried to be too clever with the interface and has failed badly. The obvious interface (optionally exporting the two subroutines and calling them as normal subroutines) would have been far simpler to understand and far more useful. Then you could even use prototypes as they were meant to be used to simulate the behaviour of built-ins like "push" and "shift".

This is a potentially useful module rendered almost unuseable by a poor interface.