Subject: | Dependency on Sub::Delete is always there, no matter what perl version |
The documentation states:
This module requires perl 5.8.0 or later and, depending on your version of perl, one of the following modules, which you can get from the CPAN:
For perl 5.11.2 and higher: Lexical::Sub
For lower perl versions: Sub::Delete
However, the code in lexical.pm has an unconditional 'use Sub::Delete;'.
This means that Sub::Delete is always required, even if you are using perl
5.11.2 or later.
Am I misinterpreting the documentation or should the hard dependency on
Sub::Delete be changed to a conditional one depending on perl version?
(An alternative, of course, would be to drop support for perl < 5.12.)