| 1 |
Source: libscalar-properties-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Dominic Hargreaves <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: perl |
| 9 |
Standards-Version: 4.6.1 |
| 10 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libscalar-properties-perl |
| 11 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libscalar-properties-perl.git |
| 12 |
Homepage: https://metacpan.org/release/Scalar-Properties |
| 13 |
Rules-Requires-Root: no |
| 14 |
|
| 15 |
Package: libscalar-properties-perl |
| 16 |
Architecture: all |
| 17 |
Depends: ${misc:Depends}, |
| 18 |
${perl:Depends} |
| 19 |
Enhances: libdata-compare-perl |
| 20 |
Description: perl module to add run-time properties on scalar variables |
| 21 |
Scalar::Properties attempts to make Perl more object-oriented by |
| 22 |
taking an idea from Ruby: Everything you manipulate is an object, |
| 23 |
and the results of those manipulations are objects themselves. |
| 24 |
. |
| 25 |
'hello world'->length |
| 26 |
(-1234)->abs |
| 27 |
"oh my god, it's full of properties"->index('g') |
| 28 |
. |
| 29 |
The first example asks a string to calculate its length. The second |
| 30 |
example asks a number to calculate its absolute value. And the |
| 31 |
third example asks a string to find the index of the letter 'g'. |
| 32 |
. |
| 33 |
Using this module you can have run-time properties on initialized |
| 34 |
scalar variables and literal values. The word 'properties' is used |
| 35 |
in the Perl 6 sense: out-of-band data, little sticky notes that |
| 36 |
are attached to the value. While attributes (as in Perl 5's attribute |
| 37 |
pragma, and see the Attribute::* family of modules) are handled |
| 38 |
at compile-time, properties are handled at run-time. |