Why Perl Is As It Is

| | Comments (0)
I wanted to find out the largest perl module in the distribution. So I wrote this script in about one minute.

use File::Find;
find(sub {
  next unless /\.pm$/;
  $file = $File::Find::name, $size = -s _ if -s > $size;
}, "Bourque:Applications (Mac OS 9):MacPerl Æ’:lib:");
print "$file: $size\n";

This is why Perl needs to have so many shortcuts. This is why Perl is cool.

FWIW, the answer is CPAN.pm. use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on November 26, 2001 2:59 PM.

Thanksgiving was the previous entry in this site.

Shuck is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.