Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 taking refuge in the Monastery: (6)
As of 2016-02-06 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (235 votes), past polls