Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.860.017 Times

Scalar::Properties 0.12

  Date Added: January 22, 2010  |  Visits: 551

Scalar::Properties

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)



Scalar::Properties is a Perl module package that contains run-time properties on scalar variables. SYNOPSIS 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, hi there->greeting(1), ); print grep { $_->is_greeting } @text; my $l = hello world->length; 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, its 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 5s 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; # now $circ->approximate indicates that this value was derived # from approximate values Please dont 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 doesnt 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;.

Requirements: No special requirements
Platforms: Linux
Keyword: Example Libraries Perl Perl Module Programming Properties Run-time Scalarproperties True Value
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


SCALAR::PROPERTIES RELATED
Programming  -  linoleum_linux32 1.14
linoleum_linux32 project is a run-time module for the L.in.o.l.e.u.m. universal low-level programming language. This module allows compilation of Linoleum programs to run in the 32-bit versions of the GNU/Linux operating system.. Get...
122.88 KB  
Programming  -  Nagios::Interface 0.01
Nagios::Interface is a Perl module for basic run-time interaction with Nagios 3 instances. There are no functions to parse or write configuration files (yet?), but it can parse most logfile messages, as well as write control messages and parse the...
30.72 KB  
Utilities  -  SheepShaver 2.3-0.20060514
SheepShaver is an Open Source PowerPC MacOS run-time environment. SheepShaver enables you to run PowerPC Classic MacOS software on your computer, even if you are using a different operating system. However, you still need a copy of MacOS and a...
419.84 KB  
Utilities  -  UMLMON 1.0.3
UMLMON is a complete run time environment for User Mode Linux. There is a separate monitor daemon for every VM. UMLMON project creates the run time environment and starts the VM by executing the UML kernel. The daemon also determines the...
3.2 MB  
Utilities  -  G.U. - Windows Run Time 1.0.0.0
G.U. - Windows Run Time is a small and very easy to use application that can display your Windows Run Time and Last Boot Up Time. G.U. - Windows Run Time has a simple and comprehensive interface that will quickly guide you through all its features.
 
Miscellaneous  -  PyCrash 0.4pre3 1.0
PyCrash is a Run-Time Exception Dumper which handles uncaught exceptions during the execution of Python programs and collects information about the program context. PyCrash can be very useful in report bug information, because the programmer can...
 
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Test::LectroTest::Property 0.3500
Test::LectroTest::Property is a Perl module with properties that make testable claims about your software. SYNOPSIS use MyModule; # provides my_function_to_test use Test::LectroTest::Generator qw( :common ); use Test::LectroTest::Property...
54.27 KB  
Libraries  -  Bio::Tools::Run::JavaRunner 1.5.2_100
Bio::Tools::Run::JavaRunner is a Perl module that can run java programs. SYNOPSIS my $runner = Bio::Tools::Run::JavaRunner->new(-jar => $jar); $runner->run(); This module is probably incomplete. It is intended to be a wrapper for running...
942.08 KB  
Libraries  -  auto-build 1.2.0
auto-build is a Perl module that can run automated, unattended software build processes. SYNOPSIS # auto-build [OPTION]... Run build using latest code currently in source control # auto-build --config /etc/auto-build.d/auto-build.conf Run...
204.8 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB