NAME

App::perl::distrolint::Check::PostfixDeref - check that postfix dereference syntax is used

DESCRIPTION

This checks that for every Perl source file in lib/, that any dereference expression made inside a scope that has the postderef feature enabled is actually written using postfix dereference syntax. That said, it fails if a dereference expression using the older circumfix-style (such as @{ ... }) is found, if it lies inside a scope that specifically enables the feature.

This checker does not complain about circumfix dereference operators being applied to string literal expressions, such as @{"This::Module::ISA"}. While technically it could be written using postfix-deref, this style is often used for symbolic references, and the distinct visual style helps distinguish them from regular data structure operations.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>