http://www.perlmonks.org?node_id=516606


in reply to Re: Counting the Extensions of the Directory
in thread Counting the Extensions of the Directory

Ok ! Yes, you are certain, with \w+ is very better.

perl -e 'while(<*>){if(-f && /\.(\w+)$/){$e{$1}++}}print "$_ -> $e{$_} +\n" for keys %e'
Thanks;


Mago
mago@rio.pm.org