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;