Syntax::Feature::In - provides an "in" operator as a replacement for smartmatch
version 0.0001
use syntax 'in'; my $found = 42 |in| [ 1 .. 100 ];
This modules imports the in operator. It can be used in three equivalent forms:
in
$foo |in| $bar $foo /in/ $bar $foo <<in>> $bar
It does a simplified version of smartmatch. See the match function from match::simple for more details.
match
match::simple
Scalar::In
Naveed Massjouni <naveed@vt.edu>
This software is copyright (c) 2014 by Naveed Massjouni.
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 Syntax::Feature::In, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Syntax::Feature::In
CPAN shell
perl -MCPAN -e shell install Syntax::Feature::In
For more information on module installation, please visit the detailed CPAN module installation guide.