X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=lib%2Findirect.pm;h=bc59529d18034f89c19587a867f6d717a62a4ce6;hp=0f805668f3ac03459cb642cfaa13ff8003b44686;hb=7808ca5448054d4528a34984d0068ae38f0ac9e9;hpb=31c338ee1ffa01e28bde0edc296e1bc9dfb9cc1b diff --git a/lib/indirect.pm b/lib/indirect.pm index 0f80566..bc59529 100644 --- a/lib/indirect.pm +++ b/lib/indirect.pm @@ -9,13 +9,13 @@ indirect - Lexically warn about using the indirect object syntax. =head1 VERSION -Version 0.03 +Version 0.05 =cut our $VERSION; BEGIN { - $VERSION = '0.03'; + $VERSION = '0.05'; } =head1 SYNOPSIS @@ -31,15 +31,17 @@ BEGIN { =head1 DESCRIPTION -When enabled (or disabled as some may prefer, since you actually turn it on by calling C), this pragma warns about indirect object syntax constructs that may have slipped into your code. This syntax is now considered harmful, since its parsing has many quirks and its use is error prone (when C isn't defined, C is actually interpreted as C<< $x->sub >>). +When enabled (or disabled as some may prefer to say, since you actually turn it on by calling C), this pragma warns about indirect object syntax constructs that may have slipped into your code. This syntax is now considered harmful, since its parsing has many quirks and its use is error prone (when C isn't defined, C is actually interpreted as C<< $x->sub >>). It currently does not warn when the object is enclosed between braces (like C) or for core functions (C or C). This may change in the future, or may be added as optional features that would be enabled by passing options to C. +This module is B a source filter. + =head1 METHODS =head2 C -Magically called when C is encountered. Turns the module on. If C<@opts> contains C<':fatal'>, the module will croak on the first indirect syntax met. +Magically called when C is encountered. Turns the module on. If C<@opts> contains C<':fatal'>, the module will croak on the first indirect syntax met. =head2 C