X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FSub%2FOp.pm;h=1c783f6fa3504399522cc4dfb27ca20476b3517e;hb=abd480ecd0ecf811f442448f74cf0afaa7997a77;hp=6b421c4be5a17f3f6b3a9a2f91e63386c48f53b5;hpb=a0c0873977f66d8024a988b8dbd8e1c092927189;p=perl%2Fmodules%2FSub-Op.git diff --git a/lib/Sub/Op.pm b/lib/Sub/Op.pm index 6b421c4..1c783f6 100644 --- a/lib/Sub/Op.pm +++ b/lib/Sub/Op.pm @@ -435,6 +435,14 @@ BEGIN { _monkeypatch() } See the F directory that implements a complete example. +=head1 CAVEATS + +Preexistent definitions of a sub whose name is handled by L are restored at the end of the lexical scope in which the module is used. +But if you define a sub in the scope of action of L with a name that is currently being replaced, the new declaration will be obliterated at the scope end. + +Function calls without parenthesis inside an C in the scope of the pragma won't be replaced. +I know a few ways of fixing this, but I've not yet decided on which. + =head1 DEPENDENCIES L 5.10.