dgaramond2 has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to know how many lines of Perl code perl has compiled up to a point, e.g.:
#!/usr/bin/perl require Foo; printf "Perl has compiled a total of %d lines of code after loading Foo\n", __MAGIC__; require Bar; printf "Perl has compiled a total of %d lines of code after loading Bar\n", __MAGIC__;
I'm sort of curious as to how "big" (or "heavy") a particular module is. Of course there's the issue of autoloading, XS, eval, etc, but maybe it's fun to know nevertheless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting line of code
by JavaFan (Canon) on Jul 21, 2009 at 12:20 UTC | |
|
Re: Counting line of code
by cdarke (Prior) on Jul 21, 2009 at 12:55 UTC | |
|
Re: Counting line of code
by Anonymous Monk on Jul 21, 2009 at 19:20 UTC |