File: profile_listdir.pl

package info (click to toggle)
libfile-util-perl 4.201720-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 840 kB
  • sloc: perl: 4,353; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

# perl -d:NYTProf performance/profile_listdir.pl

use strict;
use warnings;

use lib './lib';
use lib '../lib';

use File::Util;

my $f   = File::Util->new();
my $dir = shift @ARGV || '.';

for ( 0 .. 99 )
{
   $f->list_dir( $dir => { recurse => 1, files_only => 1, files_match => qr/\.pod$/ } );
}

__END__