experimental - Experimental features made easy
version 0.005
This pragma provides an easy and convenient way to enable or disable experimental features.
Because of the nature of the features it enables, forward compatability can not be guaranteed in any way.
smartmatch
This is effectively equivalent to
no if $] >= 5.017011, warnings => 'experimental::smartmatch';
Except that on versions that do no support smartmatch, it will give an explicit error.
lexical_subs
This is equivalent to
use feature 'lexical_subs'; no warnings 'experimental::lexical_subs';
use experimental 'lexical_subs', 'smartmatch'; my sub foo { $_[0] ~~ 1 }
Leon Timmermans <leont@cpan.org>
This software is copyright (c) 2013 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install experimental, copy and paste the appropriate command in to your terminal.
cpanm
cpanm experimental
CPAN shell
perl -MCPAN -e shell install experimental
For more information on module installation, please visit the detailed CPAN module installation guide.