Code::Style::Kit::Parts::Types - type constraints
version 1.0.1
package My::Kit; use parent qw(Code::Style::Kit Code::Style::Kit::Parts::Common Code::Style::Kit::Parts::Types); 1;
Then:
use My::Kit 'types'; sub thing { state $check = compile(Str,Int); my ($name, $value) = $check->(@_); ... }
This part defines the types feature, which imports Type::Params and Types::Standard.
types
Type::Params
Types::Standard
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.