http://www.perlmonks.org?node_id=152511

softdesigner has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am looking for a UML tool which would do reverse engineering on an existing OO Perl application and produces the class diagrams. Any pointers or suggestions are much appreciated. Thanks in advance ;) Dennis

Replies are listed 'Best First'.
Re: Any UML tool for Perl?
by perrin (Chancellor) on Mar 18, 2002 at 16:55 UTC
      Not only had I never heard of AutoDia, I had never heard of gnome's Dia - Thanks to both of you!

      It took only a little work to install the perl mods necessary, so I encourage anyone interested in visual representations of perl to give this a shot. I ran it against some projects I know well in addtion to some that I am working on - very helpful in both cases.

      Sometimes we just need to get another perspective ;-)

      Thanks guys!

Re: Any UML tool for Perl?
by strat (Canon) on Mar 18, 2002 at 17:50 UTC
    I've just installed the Module Acme-EyeDrops from CPAN, but not yet tested it. One line from it's perldoc is:
    If your boss demands a UML diagram describing the program, you can + give him this: print sightly( { Shape => 'uml', SourceFile => 'helloworld.pl', Regex => 1 } ); If it is a Windows program, you can indicate that too, by combinin +g shapes: print sightly( { Shape => 'uml,window', Gap => 1, SourceFile => 'helloworld.pl', Regex => 1 } ); producing this improved visual representation: ''=~('('.'?'.'{'.('`'|'%').('['^'-').( ( ( ( ( ( ( ( ( ( ( '`'))))))))))|'!').('`'|',').'"'.('['^ ( ( ( ...

    Best regards,
    perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"

Re: Any UML tool for Perl?
by tachyon (Chancellor) on Mar 18, 2002 at 17:26 UTC

    B::XRef will give you a basic structural outline. Data::Dumper will let you look into the objects. Devel::Symdump may also assist. A search of CPAN may prove worthwhile in the B:: and Devel:: catagories.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Any UML tool for Perl?
by htoug (Deacon) on Mar 19, 2002 at 09:44 UTC
    A quick SuperSearch would have revealed to you that there is a Q&A section on exactly this <grumble mode="wonder">why don't people use supersearch some more</grumble>.

    Try SuperSearch with UML in both the body and the title for yourself and be amazed at what is hidden in the monastery vaults.