Name : perl-Scalar-MoreUtils
| |
Version : 0.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.6.1
| Date : 2023-07-20 16:44:59
|
Group : Development/Libraries/Perl
| Source RPM : perl-Scalar-MoreUtils-0.02-lp155.6.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Provide the stuff missing in Scalar::Util
|
Description :
Similar to \'Hsah::MoreUtils\' and \'List::MoreUtils\', \'Scalar::MoreUtils\' contains trivial but commonly-used scalar functionality.
Essentially, provide some pretty trivial functionality that I find useful over and over. The value of this module will probably be blasted away by Perl 5.10.
Suggestions welcome.
* nil VALUE
Returns true if VALUE is not defined.
* empty VALUE
Returns true if VALUE is not defined or if VALUE is the empty string (\"\").
* define VALUE
Returns VALUE if it is defined, otherwise returns the empty string (\"\").
* default VALUE DEFAULT
Returns VALUE if it is defined, otherwise returns DEFAULT.
This is similar to the \"//\" in the Perl 5.10 ... well, not really, but kinda.
* ifnil VALUE DEFAULT
Returns VALUE if it is not nil, otherwise returns DEFAULT.
Read \"ifnil(A,B)\" as \"ifnil A, then B, otherwise A\"
\'ifnil\' behaves exactly the same as \'default\'.
* ifempty VALUE DEFAULT
Returns VALUE if it is not empty, otherwise returns DEFAULT.
Read \"ifempty(A,B)\" as \"ifempty A, then B, otherwise A\"
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.5/noarch |