SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Scalar-Properties rpm build for : OpenSuSE. For other distributions click perl-Scalar-Properties.

Name : perl-Scalar-Properties
Version : 1.100860 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp154.6.1 Date : 2023-01-27 17:11:51
Group : Development/Libraries/Perl Source RPM : perl-Scalar-Properties-1.100860-lp154.6.1.src.rpm
Size : 0.05 MB
Packager : https://www_suse_com/
Summary : Run-time properties on scalar variables
Description :
Scalar::Properties attempts to make Perl more object-oriented by taking an
idea from Ruby: Everything you manipulate is an object, and the results of
those manipulations are objects themselves.

\'hello world\'->length
(-1234)->abs
\"oh my god, it\'s full of properties\"->index(\'g\')

The first example asks a string to calculate its length. The second example
asks a number to calculate its absolute value. And the third example asks a
string to find the index of the letter \'g\'.

Using this module you can have run-time properties on initialized scalar
variables and literal values. The word \'properties\' is used in the Perl 6
sense: out-of-band data, little sticky notes that are attached to the
value. While attributes (as in Perl 5\'s attribute pragma, and see the
\'Attribute::*\' family of modules) are handled at compile-time, properties
are handled at run-time.

Internally properties are implemented by making their values into objects
with overloaded operators. The actual properties are then simply hash
entries.

Most properties are simply notes you attach to the value, but some may have
deeper meaning. For example, the \'true\' and \'false\' properties plays a role
in boolean context, as the first example of the Synopsis shows.

Properties can also be propagated between values. For details, see the
EXPORTS section below. Here is an example why this might be desirable:

pass_on(\'approximate\');
my $pi = 3->approximate(1);
my $circ = 2 * $rad * $pi;




Please don\'t use properties whose name start with an underscore; these are
reserved for internal use.

You can set and query properties like this:

* \'$var->myprop(1)\'

sets the property to a true value.

* \'$var->myprop(0)\'

sets the property to a false value. Note that this doesn\'t delete the
property (to do so, use the \'del_props\' method described below).

* \'$var->is_myprop\', \'$var->has_myprop\'

returns a true value if the property is set (i.e., defined and has a true
value). The two alternate interfaces are provided to make querying
attributes sound more natural. For example:

$foo->is_approximate;
$bar->has_history;

Values thus made into objects also expose various utility methods. All of
those methods (unless noted otherwise) return the result as an overloaded
value ready to take properties and method calls itself, and don\'t modify
the original value.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-S/15.4/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Scalar-Properties-1.100860-lp154.6.1.noarch.rpm
     

Provides :
perl(Scalar::Properties)
perl-Scalar-Properties

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Test::More) >= 0.88
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Scalar
/usr/lib/perl5/vendor_perl/5.26.1/Scalar/Properties.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Scalar-Properties
/usr/share/doc/packages/perl-Scalar-Properties/Changes
/usr/share/doc/packages/perl-Scalar-Properties/LICENSE
/usr/share/doc/packages/perl-Scalar-Properties/README
/usr/share/man/man3/Scalar::Properties.3pm.gz

 
ICM