5 # -----------------------------------------------------------------------------
11 # Search for *.[CH] files that exceed the 80-column width
13 # - print filename lineNumber and offending line (with truncation point)
15 # -----------------------------------------------------------------------------
18 my $re_filespec = qr{^.+\.[CH]$};
22 unless ( lstat($_) and -f _
and -r _
and not -l _
and /$re_filespec/ ) {
31 if ( $maxlen < length ) {
33 substr( $_, $maxlen, 0 ) = "||->>"; # show truncation point
34 print "$File::Find::name $. $_\n";
40 ## Traverse desired filesystems
42 no warnings
'File::Find';
43 warn "(**) checking '$dir' ...\n";
44 File
::Find
::find
( { wanted
=> \
&wanted
}, $dir );