>>>>> "Parag" == Parag Kalra <paragka...@gmail.com> writes:

Parag> Do we have any Perl module which can parse any other perl script
Parag> (or module) and fetch information like total number of arrays
Parag> being used, total number of hashes, total number of scalar
Parag> variables etc and size information (like total elements, total
Parag> keys etc) for each data structure in that perl script or may be
Parag> another perl module

It's not possible to completely parse Perl statically [1], although PPI
[2] is pretty close and usable for most programs.

[1] http://www.perlmonks.org/index.pl?node_id=44722
[2] http://search.cpan.org/~adamk/PPI-1.215/lib/PPI.pm

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to