Name : perl-Syntax-Infix-Smartmatch
| |
Version : 0.005
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 19:08:19
|
Group : Unspecified
| Source RPM : perl-Syntax-Infix-Smartmatch-0.005-lp155.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Smartmatch done right
|
Description :
*NOTE: This module is currently still experimental and the details of its behavior may still change*.
This module implements a new, much simplified version of smartmatch. In particular the behavior only depends on the right side argument. In particular it will do the following based on the right side argument:
* * undef
This will return \'not defined $left\'.
* * object
If the object has smartmatch overloading (note: this might disappear in a future Perl version), that is called. Otherwise it returns object identity.
* * regex
This is equivalent to \'$left =~ $right\'.
* * sub
It will return the value of \'$right->($left)\'
* * array
This will return true if \'$left\' smartmatches any of the members of \'AATT$right\'.
* * other
This will return \'$left equ $right\' (\'defined $left and $left eq $right\').
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/x86_64 |