http://www.perlmonks.org?node_id=277476


in reply to Follow the Interface?

You sound like you have to make a choice. What's wrong with giving you access to all the functionality of the underlaying library *and* have a Perl centric API as well?

Abigail

Replies are listed 'Best First'.
Re: Re: Follow the Interface?
by chaoticset (Chaplain) on Jul 24, 2003 at 18:44 UTC


    This is probably the best way to go. Build your module with both the underlying power functionality and the higher level soft stuff and then more people can use it.

    Of course, if somehow the 'simple' API functions don't justify the bulk of the interface, you might want them separated. (Rarely the case, in what I've seen. Using XML::Simple requires XML::Parser (ah, memory...I almost think you can get away with just using some other XML module, but then you still have to download something more complex anyway, kind of a moot point...)) I believe the reason XML::Simple is a separate module is to make the implementation simpler, not to save overhead.

    I'm really just guessing, though.

    -----------------------
    You are what you think.