Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 cooling their heels in the Monastery: (11)
As of 2014-11-28 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (194 votes), past polls