Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Move the read_in and write_out subs into the module for code re-use #8
This change moves the two main input and output subroutines and their dependent private subs from the dpath script into the previously empty App::DPath module. The user-facing functionality of dpath is unchanged as is the test suite which still passes (for my installation at any rate). The benefit here is that any other script or module can now use the App::DPath module to read and write the structures to and from files with all the benefit provided by this dist without having to shell out or otherwise load the dpath script.
The PR isn't entirely finished yet - the POD could be improved and some tests written to access the subs directly instead of only via dpath. I'll be happy to polish it before merging if you were to approve the principle.
This work has been done as part of the CPAN PR Challenge. The dist was otherwise in great shape and it just seemed to me to be a pity that the module was essentially just a placeholder when some of the subs could be moved there for re-use.