in reply to Modification of @ISA at run time
In this case, what you really should do is not to mess with the inheritance at the run time, but to have a class called SolarSystemDataFactory.
This class should have a method that returns you an instance of the right class based on your input. For example, it takes a parameter saying whether the sun rises on the east on west, and base on that, it either returns you an object of Solar::Data or Nemesis::Data.
|
|---|