For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2006 > help finding module









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help finding module
john.scaglione@gmail.com

2006-07-25, 6:57 pm

Hello
I need to parse through a large amount of perl code and find functions
and/or whole modules that are no longer in use.

I have been looking for a tool on CPAN for a while that can help me.
Specifically I am looking for something that will parse through a perl
file and tell me what functions are in it (and maybe what functions are
called from it).

Can anyone here point me towards a module that will help me out?

thanks

Paul Lalli

2006-07-25, 6:57 pm

john.scaglione@gmail.com wrote:
> I need to parse through a large amount of perl code and find functions
> and/or whole modules that are no longer in use.
>
> I have been looking for a tool on CPAN for a while that can help me.
> Specifically I am looking for something that will parse through a perl
> file and tell me what functions are in it (and maybe what functions are
> called from it).
>
> Can anyone here point me towards a module that will help me out?


How about one of the PPI modules?
http://search.cpan.org/~adamk/PPI-1...PPI/Document.pm shows an
example that will give you the named subs of a perl file. . .

Paul Lalli

john.scaglione@gmail.com

2006-07-25, 6:57 pm

Excellent. Exactly what I'm looking for. Thanks!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com