for i in $(find "$basedir"/bin -type f ! -name "*.orig")$(find "$basedir"/lib/perl -type f -name "*.pm")$(find "$basedir"/lib/perl -type f -name "*.inc")
do
i=$(readlink -f "$i")
if head -n1 "$i"| grep -Eq '/perl|/env perl'|| head -n2 "$i"| grep -Eq '^package ';then
action_detail "${BLUE}$i${NOC}"
if grep -q -- 'perl -T'"$i";then
# shellcheck disable=SC2086
perl $cmdline -Tc "$i" 2>&1| grep -v OK$
else
# shellcheck disable=SC2086
perl $cmdline -c "$i" 2>&1| grep -v OK$
fi
["${PIPESTATUS[0]}" -ne 0]&&(( fails++ ))
[ -n "$DEBUG"]||continue
grep -q '^use warnings'"$i"&&echo"(spurious use warnings in $i)"
grep -q '^use strict'"$i"&&echo"(spurious use strict in $i)"
grep -q '^use common::sense;'"$i"||echo"(missing common::sense in $i)"