Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Counting the Extensions of the Directory

by Mago (Parson)
on Dec 14, 2005 at 12:54 UTC ( #516606=note: print w/ replies, xml ) Need Help??


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



Comment on Re^2: Counting the Extensions of the Directory
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-09-23 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls