Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: File ext number

by ikegami (Patriarch)
on Mar 19, 2010 at 23:20 UTC ( [id://829723]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    }
    
    print "$_ - $ext{$_}\n" for keys %ext;
    
  2. or download this
    use strict;
    use warnings;
    ...
    ++$ext{$1} for map { -f && /\.([^.]+)$/ ? $1 : () } readdir $dh;
    
    print "$_ - $ext{$_}\n" for keys %ext;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found