Filewatcher File Search File Search
Content Search
» » » » »


perl module to add run-time properties on scalar variables

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.

Package version:0.13-1


This is the Perl module Module::Cloud.


Module::Cloud installation is straightforward. If your CPAN shell is set up,
you should just be able to do

    % cpan Module::Cloud

Download it, unpack it, then build it as per the usual:

    % perl Makefile.PL
    % make && make test

Then install it:

    % make install


Module::Cloud documentation is available as in POD. So


Scalar::PropertieUsermContributed Perl DocumeScalar::Properties(3pm)

       Scalar::Properties - run-time properties on scalar variables

         use Scalar::Properties;
         my $val = 0->true;
           if ($val && $val == 0) {
           print "yup, its true alright...\n";

         my @text = (
           'hello world'->greeting(1),
           'forget it',


libscalar-properties-perl (0.13-1) unstable; urgency=low

  * New maintainer. (Closes: #507395)
  * New upstream release.
  * debian/control:
    - Standards-Version: 3.8.0.
    - changed debhelper (>= 7).
    - add libtest-pod-perl, libtest-perl-critic-perl to perform more tests.
    - add Homepage.
  * debian/compat:
    - upgrade to level 7.
  * debian/copyright:
    - changed information.



Revision history for Perl extension Scalar::Properties.

0.13  Do Okt 18 10:09:39 CEST 2007


* Test constant 'qr'

* 'true' and 'false' properties are opposites that still only affect
  one has


This package was debianized by Timo Schneider from CPAN on 04/20/06,
New maintainet since version 0.

Browse inside libscalar-properties-perl_0.13-1_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libscalar-properties-perl_0.13-1_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016