I've been thinking a lot about OOP in perl; this may be due to some excellent Java training
I've taken recently, or just as a side effect of some of the apocalypse entries.
Part of my explorations of the subject brought me to UML
, and although it's more used in Java communities, I think it has a role to play when designing OO perl modules and systems. There's a nice GPL'd diagram creation program called Dia
(now with win32 port
)which I've grown quite fond of.
Of course, once I'd a nice sized UML diagram completed, I wanted to export it out to perl. You can do so for a variety
of languages (ada?), but perl wasn't in the gameplan, it seems.
I grew wroth, and coded. Well, wroth probably isn't the right word, but the end result is a set of packages under the Dia namespace, chiefly Dia::UMLDiagram
. The module provides a read-only interface into the layers of a Dia diagram which can be manipulated for output. Currently only class objects are supported; but this provides the functionality for generation of a skeletal module.
Your feedback is humbly requested, either through comments or email to email@example.com.