A feature-rich, modular AOL Instant Messenger client written chiefly by Bill Atkins and Dan Chokola in their high school days.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl |
|
|
|
use strict; |
|
use warnings; |
|
|
|
use File::Find; |
|
|
|
my $sum; |
|
|
|
sub process |
|
{ |
|
return if -d; |
|
return unless /\.p(l|m)$/; |
|
my ($res) = `wc -l $_`; |
|
$sum += ($res =~ /(\d+)/)[0]; |
|
} |
|
|
|
find(\&process, "."); |
|
print $sum . "\n"
|
|
|