in reply to Perl Module API update or new release
How about something along the lines of use Cisco::Management api => 2;, and have that top-level module load either the v1 compatible module (the current code) or the v2 compatible module (the new stuff). This would allow you to, at some future point in time, deprecate the v1 module, put warnings to the user a few releases prior to decommissioning the v1 API, etc.
From the perspective of a timeline:
Update: requiring the api parameter changes the top-level use semantics for the module, and may not be what you want to do.
Update 2: Add comment about updating the X part of the module version string.
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Module API update or new release
by VinsWorldcom (Prior) on Mar 24, 2015 at 14:35 UTC | |
by RonW (Parson) on Mar 24, 2015 at 17:07 UTC | |
by VinsWorldcom (Prior) on Mar 24, 2015 at 18:04 UTC |