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.982.645 Times

Readonly 1.03

  Date Added: September 16, 2010  |  Visits: 619

Readonly

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)

Readonly is a Perl module that offers the facility for creating read-only scalars, arrays, hashes. SYNOPSIS use Readonly; # Read-only scalar Readonly::Scalar $sca => $initial_value; Readonly::Scalar my $sca => $initial_value; # Read-only array Readonly::Array @arr => @values; Readonly::Array my @arr => @values; # Read-only hash Readonly::Hash %has => (key => value, key => value, ...); Readonly::Hash my %has => (key => value, key => value, ...); # or: Readonly::Hash %has => {key => value, key => value, ...}; # You can use the read-only variables like any regular variables: print $sca; $something = $sca + $arr[2]; next if $has{$some_key}; # But if you try to modify a value, your program will die: $sca = 7; push @arr, seven; delete $has{key}; # The error message is "Modification of a read-only value attempted" # Alternate form (Perl 5.8 and later) Readonly $sca => $initial_value; Readonly my $sca => $initial_value; Readonly @arr => @values; Readonly my @arr => @values; Readonly %has => (key => value, key => value, ...); Readonly my %has => (key => value, key => value, ...); # Alternate form (for Perls earlier than v5.8) Readonly $sca => $initial_value; Readonly my $sca => $initial_value; Readonly @arr => @values; Readonly my @arr => @values; Readonly %has => (key => value, key => value, ...); Readonly my %has => (key => value, key => value, ...); This is a facility for creating non-modifiable variables. This is useful for configuration files, headers, etc. It can also be useful as a development and debugging tool, for catching updates to variables that should not be changed. If any of the values you pass to Scalar, Array, or Hash are references, then those functions recurse over the data structures, marking everything as Readonly. Usually, this is what you want: the entire structure nonmodifiable. If you want only the top level to be Readonly, use the alternate Scalar1, Array1 and Hash1 functions. Please note that most users of Readonly will also want to install a companion module Readonly::XS. See the "CONS" section below for more details..

Requirements: No special requirements
Platforms: Linux
Keyword: Arr Key Libraries Perl Module Programming Read-only Readonly Sca Value
Users rating: 0/10

License: Freeware Size: 13.31 KB
READONLY RELATED
Libraries  -  Convert::PEM 0.07
Convert::PEM is Perl module that read/write encrypted ASN.1 PEM files. SYNOPSIS use Convert::PEM; my $pem = Convert::PEM->new( Name => "DSA PRIVATE KEY", ASN => qq( DSAPrivateKey SEQUENCE { version INTEGER, p INTEGER, q INTEGER, g...
20.48 KB  
Libraries  -  dtRdr::Annotation::IO::YAML 0.0.11
dtRdr::Annotation::IO::YAML is a Perl module to read/write annotations from/to yml files. Methods init $io->init; items_for Return the hashrefs for a given book. @items = $io->items_for($book); insert $io->insert($object, %args);...
2.8 MB  
Libraries  -  TM::DM 1.24
TM::DM is a Perl module with Topic Maps, read-only TMDM layer. SYNOPSIS # somehow acquire a map (see TM and its subclasses) my $tm = .... # put a TMDM layer on top of it use TM::DM; my $tmdm = new TM::DM (map => $tm); # get the TMDM...
215.04 KB  
Libraries  -  Biblio::Isis 0.24
Biblio::Isis is a Perl module to read CDS/ISIS, WinISIS and IsisMarc database. SYNOPSIS use Biblio::Isis; my $isis = new Biblio::Isis( isisdb => ./cds/cds, ); for(my $mfn = 1; $mfn count; $mfn++) { print...
40.96 KB  
Libraries  -  AnnoCPAN::XMLCGI 0.22
AnnoCPAN::XMLCGI is a Perl module to read XML input through a CGI.pm-like interface. SYNOPSYS use AnnoCPAN::XMLCGI; my $cgi = AnnoCPAN::XMLCGI->new; my $name = $cgi->param(name); print $cgi->header; print "Hello, $name!n"; # Hello, Bob!...
79.87 KB  
Libraries  -  Image::ExifTool::QuickTime 6.42
Image::ExifTool::QuickTime is a Perl module to read QuickTime and MP4 meta information. SYNOPSIS This module is used by Image::ExifTool This module contains routines required by Image::ExifTool to extract information from QuickTime and MP4...
1024 KB  
Libraries  -  PHP::Session 0.26
PHP::Session is a Perl module to read / write PHP session files. SYNOPSIS use PHP::Session; my $session = PHP::Session->new($id); # session id my $id = $session->id; # get/set session data my $foo = $session->get(foo);...
15.36 KB  
Libraries  -  PHP::Session::DB 0.2
PHP::Session::DB is a Perl module to read / write PHP sessions stored in databases. SYNOPSIS use PHP::Session::DB; my $session = PHP::Session::DB->new($id, { DBUSER => $dbuser, DBPASSWD => $dbpasswd, DBNAME => $dbname }); # session id my...
4.1 KB  
Libraries  -  Coy 0.05
Coy is a Perl module like Carp only prettier. SYNOPSIS # In your application: # ==================== use Coy; warn "There seems to be a problem"; die "Looks like it might be fatal"; # You can add vocab in the $HOME/.coyrc file: #...
20.48 KB  
Libraries  -  XML::TiePYX 0.05
XML::TiePYX is a Perl module to read or write XML data in PYX format via tied filehandle SYNOPSIS use XML::TiePYX; tie *XML,XML::TiePYX,file.xml open IN,file.xml or die $!; tie *XML,XML::TiePYX,*IN,Condense=>0; my $text=< tag...
7.17 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.12.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