Paketname | libscalar-properties-perl |
Beschreibung | perl module to add run-time properties on scalar variables |
Archiv/Repository | Offizielles Ubuntu Archiv lucid (universe) |
Version | 0.13-1 |
Sektion | universe/perl |
Priorität | optional |
Installierte Größe | 84 Byte |
Hängt ab von | perl (>= 5.6.0-16) |
Empfohlene Pakete | |
Paketbetreuer | Ubuntu MOTU Developers |
Quelle | |
Paketgröße | 17126 Byte |
Prüfsumme MD5 | b600e2fcb9c3729c0cd79ef65f0e2ad1 |
Prüfsumme SHA1 | 124acf94baa10eb50d63c5e67960d99050885710 |
Prüfsumme SHA256 | d969f1666d0d374764045d4249e7780dd48f35c22332fcf80b4484e68fc7bc84 |
Link zum Herunterladen | libscalar-properties-perl_0.13-1_all.deb |
Ausführliche Beschreibung | 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.
|