X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Op.git;a=blobdiff_plain;f=lib%2FSub%2FOp.pm;h=e44ebcaa8afa9635d934cb09c68cd52b0d586e0c;hp=6b421c4be5a17f3f6b3a9a2f91e63386c48f53b5;hb=e7ec7b5660437ed920a2d671f933d8db331e27d0;hpb=3571f5a5bbffc758bbb91793ae256609d71945fc diff --git a/lib/Sub/Op.pm b/lib/Sub/Op.pm index 6b421c4..e44ebca 100644 --- a/lib/Sub/Op.pm +++ b/lib/Sub/Op.pm @@ -435,6 +435,11 @@ 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. + =head1 DEPENDENCIES L 5.10.