Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-08-29 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls