find /var/db/pkg/ \
    -type d \
    \( -wholename "*/pkg/dev-lang/perl*"      \
       -or -wholename "*/pkg/perl-core/*"     \
       -or -wholename "*/pkg/virtual/perl-*"  \
    \) -printf "%C@ %p\n" | sort -n 