will_ has asked for the wisdom of the Perl Monks concerning the following question:
ok +Some::Package::Foo->a_method_call($var), 'test succeeded';
I'm told that the plus gives the perl interpreter a hint about the sub called 'ok' that it's not a method in Some::Package::Foo.
Why is that desirable?
Is this syntax documented anywhere?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What does a plus mean before a package name?
by ikegami (Patriarch) on May 26, 2011 at 09:32 UTC | |
|
Re: What does a plus mean before a package name?
by metaperl (Curate) on May 26, 2011 at 09:11 UTC | |
|
Re: What does a plus mean before a package name?
by jethro (Monsignor) on May 26, 2011 at 08:43 UTC | |
by ikegami (Patriarch) on May 26, 2011 at 09:29 UTC | |
by anonymized user 468275 (Curate) on May 26, 2011 at 09:49 UTC | |
|
Re: What does a plus mean before a package name?
by Anonymous Monk on May 26, 2011 at 08:35 UTC | |
by locked_user sundialsvc4 (Abbot) on May 26, 2011 at 11:31 UTC | |
by Anonymous Monk on May 26, 2011 at 12:41 UTC |