Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How do you do multi-version modules?

by Corion (Pope)
on Oct 13, 2012 at 23:11 UTC ( #998884=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package My::Module;
    use strict;
    ...
        ...
        # Dynamically load either My::Module::API1 or My::Module::API2
    };
    
  2. or download this
    package My::Module::API1;
    # The old API
    
  3. or download this
    package My::Module::API2;
    # The new API
    
  4. or download this
    use My::Module api => 'API1';
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-09-17 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls