Code::Style::Kit::Parts::Perl526 - use features from perl 5.26
version 1.0.0
package My::Kit; use parent qw(Code::Style::Kit Code::Style::Kit::Parts::Perl526); 1;
Then:
package My::Package; use My::Kit; # you can now use say, state, __SUB__, fc, my sub, # sub foo($arg,@etc), $a->@*
This part defines the perl_5_26 feature, enabled by default, which enables all the features of perl version 5.26 (but not switch, because given / when and the smartmatch operator are not stable). It also enables subroutine signatures (which are experimental, but stable enough).
perl_5_26
switch
given
when
Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
This software is copyright (c) 2019 by BroadBean UK, a CareerBuilder Company.
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 Code::Style::Kit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Code::Style::Kit
CPAN shell
perl -MCPAN -e shell install Code::Style::Kit
For more information on module installation, please visit the detailed CPAN module installation guide.