in reply to Is use really appropriate in a OO system?

import() can be very useful in OO situations. You can use it to do mixins, for example. You can optimize inheritance in a static class hierarchy. If you go crazy with closures and other functional tricks, you can even achieve polymorphism.

There's are very few shouldn'ts in Perl for good reason -- if you know when they're appropriate, you can often do the impossible.

  • Comment on Re: Is use really appropriate in a OO system?