]> git.vpit.fr Git - perl/modules/indirect.git/blob - README
Importing indirect-0.01.tar.gz
[perl/modules/indirect.git] / README
1 NAME
2     indirect - Lexically warn about using the indirect object syntax.
3
4 VERSION
5     Version 0.01
6
7 SYNOPSIS
8         no indirect;
9         my $x = new Apple 1, 2, 3; # warns
10         {
11          use indirect;
12          my $y = new Pear; # ok
13         }
14         no indirect ':fatal';
15         if (defied $foo) { ... } # croaks, note the typo
16
17 DESCRIPTION
18     When enabled (or disabled as some may prefer, since you actually turn it
19     on by calling "no indirect"), this pragma warns about indirect object
20     syntax constructs that may have slipped into your code. This syntax is
21     now considered harmful, since its parsing has many quirks and its use is
22     error prone (when "sub" isn't defined, "sub $x" is actually interpreted
23     as "$x->sub").
24
25     It currently does not warn when the object is enclosed between braces
26     (like "meth { $obj } @args") or for core functions ("print" or "say").
27     This may change in the future, or may be added as optional features that
28     would be enabled by passing options to "unimport".
29
30 METHODS
31   "unimport @opts"
32     Magically called when "no indirect @args" is encountered. Turns the
33     module on. If @opts contains ':fatal', the module will croak on the
34     first indirect syntax met.
35
36   "import"
37     Magically called at each "use indirect". Turns the module off.
38
39 DEPENDENCIES
40     perl 5.9.4.
41
42     XSLoader (standard since perl 5.006).
43
44     Tests require IPC::Cmd (standard since 5.9.5).
45
46 AUTHOR
47     Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
48
49     You can contact me by mail or on #perl @ FreeNode (vincent or
50     Prof_Vince).
51
52 BUGS
53     Please report any bugs or feature requests to "bug-indirect at
54     rt.cpan.org", or through the web interface at
55     <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=indirect>. I will be
56     notified, and then you'll automatically be notified of progress on your
57     bug as I make changes.
58
59 SUPPORT
60     You can find documentation for this module with the perldoc command.
61
62         perldoc indirect
63
64 ACKNOWLEDGEMENTS
65     Bram, for motivation and advices.
66
67 COPYRIGHT & LICENSE
68     Copyright 2008 Vincent Pit, all rights reserved.
69
70     This program is free software; you can redistribute it and/or modify it
71     under the same terms as Perl itself.
72