pwagyi has asked for the wisdom of the Perl Monks concerning the following question:
I am not totally new to perl and modules. Mostly I've been a user of modules and I am writing some modules and planning to upload to CPAN. I have some experience writing simple perl module (.pm) files and using them straightaway in my own application. Now I'm learning to use tools like h2xs, module-maker to develop proper (standard) way of doing things. I have read module tutorials on 'perlmonks'. So the question is how do I structure my module if I would like to separate interface and implementations?
Let's say I've Foo::Bar and client will only use Foo::Bar. but Foo::Bar is just interface and there may be multiple concrete implementations. (maybe something like DBI, IOHandle?) So Foo::Bar::Implementation1 and Foo::Bar::Implementation2 maybe developed by different developers. Does that mean one developer will be writing his/her own h2xs Foo::Bar::Implementation ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl module structure (Façade choosing backend)
by LanX (Saint) on Mar 30, 2018 at 10:52 UTC | |
by pwagyi (Monk) on Mar 30, 2018 at 12:56 UTC | |
by LanX (Saint) on Mar 30, 2018 at 13:34 UTC | |
|
Re: perl module structure
by trippledubs (Deacon) on Mar 30, 2018 at 14:20 UTC | |
|
Re: perl module structure
by Anonymous Monk on Mar 30, 2018 at 13:20 UTC | |
by pwagyi (Monk) on Mar 30, 2018 at 13:52 UTC | |
|
Re: perl module structure
by karlgoethebier (Abbot) on Mar 31, 2018 at 13:35 UTC | |
|
Re: perl module structure
by Anonymous Monk on Mar 30, 2018 at 13:54 UTC | |
|