Package Info

perl-indirect


Lexically warn about using the indirect method call syntax


Development/Libraries/Perl

When enabled, this pragma warns about indirect method calls that are present in your code.

The indirect syntax is now considered harmful, since its parsing has many quirks and its use is error prone : when the subroutine 'foo' has not been declared in the current package, 'foo $x' actually compiles to '$x->foo', and 'foo { key => 1 }' to ''key'->foo(1)'. Please refer to the REFERENCES section for a more complete list of reasons for avoiding this construct.

This pragma currently does not warn for core functions ('print', 'say', 'exec' or 'system'). This may change in the future, or may be added as optional features that would be enabled by passing options to 'unimport'.

This module is not a source filter.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/indirect

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.39-bp154.1.18 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-indirect
  • perl-indirect-debuginfo
  • perl-indirect-debugsource
0.38-bp153.1.22 info GA Release 2021-03-05 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-indirect
0.38-bp152.3.20 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-indirect
0.38-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • s390x
  • x86-64
  • perl-indirect
0.38-bp151.2.16 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • perl-indirect
0.38-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-indirect