++ed by:
ARISTOTLE BINGOS DOHERTY ETHER KARJALA

13 PAUSE user(s)
2 non-PAUSE user(s).

Leon Timmermans

NAME

experimental - Experimental features made easy

VERSION

version 0.005

DESCRIPTION

This pragma provides an easy and convenient way to enable or disable experimental features.

Disclaimer

Because of the nature of the features it enables, forward compatability can not be guaranteed in any way.

Use cases

  • 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';

SYNOPSYS

 use experimental 'lexical_subs', 'smartmatch';
 my sub foo { $_[0] ~~ 1 }

AUTHOR

Leon Timmermans <leont@cpan.org>

COPYRIGHT AND LICENSE

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.




Hosting generously
sponsored by Bytemark