Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: standard perl routine

by g0n (Priest)
on Apr 30, 2006 at 09:44 UTC ( [id://546571]=note: print w/replies, xml ) Need Help??


in reply to Re^3: standard perl routine
in thread standard perl routine

Just to labour the point, I ran this code against the ./lib of the 5.8.8 source to get a rough idea of the number of subs in the core modules:

use File::Find; find(\&wanted,'.'); print "Total = $counter\n"; sub wanted { if ($_ =~/(?:\.pl|\.pm)/) { open (my $fh,"<",$_) or die "$!"; while (<$fh>) { if ($_ =~/^sub\s+/){$counter++} } close $fh; } }

It reported 5394 subs. Importing that lot could use a *lot* of RAM, and take a while to compile ;-)

--------------------------------------------------------------

"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
John Brunner, "The Shockwave Rider".

Can you spare 2 minutes to help with my research? If so, please click here

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://546571]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found