Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Answer: Generate UML from Perl code?

( #102510=categorized answer: print w/ replies, xml ) Need Help??

Q&A > object-oriented programming > Generate UML from Perl code? contributed by bikeNomad

The code I posted at Graph your Perl inheritance structure will draw an inheritance diagram from an existing Perl program. You should be able to modify it to make UML diagrams pretty easily. But you won't be able to edit them graphically.

But you don't say what UML diagrams you're interested in (there are lots of different kinds). Some possibilities that I can think of for diagramming:

  • use the debugger hooks to build a sequence or collaboration diagram
  • analyze the @ISA structure for a class diagram like my example does
  • analyze your POE structures for a class diagram
  • analyze the 'use' and 'require' structures (you can use the debugger hooks here too) for a component diagram

Comment on Answer: Generate UML from Perl code?
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-10-09 22:24 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (253 votes), past polls