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

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

Serving Software Downloads in 956 Categories, Downloaded 50.213.853 Times

Variable::Alias 0.01

  Date Added: May 27, 2010  |  Visits: 902

Variable::Alias

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)



Variable::Alias is a Perl module created to alias any variable to any other variable. SYNOPSIS use Variable::Alias alias; my $src; my $a; our $b; my @c; our @d; alias $src => $a; alias $a => $b; alias $b => $c[0]; alias @c => @d; $src=src; # All the other variables now have the string # src in the appropriate places. There are various ways to alias one variable to another in Perl. The most popular is by assigning to typeglobs. This is quite efective, but only works with globals. Another method is to use a module like Lexical::Alias or Devel::LexAlias, but as their names suggest, these only work with lexicals. Theres no way to alias an element of an array or hash. Variable::Alias changes all that. It uses a tie to provide One True Way to alias a variable. Interface Variable::Alias may export any or all of five functions. If youve used Lexical::Alias, the interface is virtually identical. alias(VAR, VAR) alias takes two variables of any type (scalar, array or hash) and aliases them. Make sure they have the sigil you want on the front. This function is only available in Perl 5.8.0 and later, because the prototype tricks it uses were first implemented in that version. alias_s(SCALAR, SCALAR) alias_s takes two scalars and aliases them. alias_a(ARRAY, ARRAY) alias_a takes two arrays and aliases them. Note that this is actual arrays, not array elements, although you can alias references in elements, like so: alias_a(@short, @{$some->sequence->{of}->calls->{thats}[2]{long}}); alias_h(HASH, HASH) alias_h takes two hashes and aliases them. alias_r(REF, REF) alias_r takes two references and aliases them. The referents must be of the same type..

Requirements: No special requirements
Platforms: Linux
Keyword: Alias Array Libraries Module Perl Perl Module Programming Takes Takes Two Variable Variablealias
Users rating: 0/10

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


VARIABLE::ALIAS RELATED
Libraries  -  Tie::FlatFile::Array 0.03
Tie::FlatFile::Array is a Perl extension which treats a flatfile database as an array of arrays. This module allows the programmer to treat a flatfile database as as array of arrays. For example, lets say you have a datafile that has...
5.12 KB  
Libraries  -  Exporter::Easy 0.16
Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols. SYNOPSIS In module YourModule.pm: package YourModule; use Exporter::Easy ( OK => [ $munge, frobnicate ] # symbols to export on request ); In other files...
9.22 KB  
Libraries  -  Variable::Strongly::Typed::Array 1.1.0
Variable::Strongly::Typed::Array is a Perl module for strongly typed array. SYNOPSIS This class is utilized by Variable::Strongly::Typed - you dont access this directly my @array_of_ints :TYPE(int); # Each slot must contain an int my...
10.24 KB  
Libraries  -  Text::NSP::Measures::2D::Fisher::twotailed 1.03
Text::NSP::Measures::2D::Fisher::twotailed is a Perl module implementation of the two-sided Fishers exact test. SYNOPSIS Basic Usage use Text::NSP::Measures::2D::Fisher::twotailed; my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;...
952.32 KB  
Libraries  -  Text::NSP::Measures::2D::Fisher2::twotailed 1.03
Text::NSP::Measures::2D::Fisher2::twotailed is a Perl module implementation of the two-sided Fishers exact test. SYNOPSIS Basic Usage use Text::NSP::Measures::2D::Fisher2::twotailed; my $npp = 60; my $n1p = 20; my $np1 = 20; my $n11 = 10;...
952.32 KB  
Libraries  -  Array::Utils 0.3
Array::Utils module contains small utils for array manipulation. SYNOPSIS use Array::Utils qw(:all); my @a = qw( a b c d ); my @b = qw( c d e f ); # symmetric difference my @diff = array_diff(@a, @b); # intersection my @isect =...
2.05 KB  
Modules  -  Array Tokens 6.x-1.2-beta6
The Array Tokens module allows you to use all values in multiple-value CCK fields and multiple-value taxonomy terms in a single token. It also allows you to define your own settings for how items should be merged ("merge styles").The output of...
10 KB  
Modules  -  Custom CSS and javascript files 6.x-1.6
This module allows to specify two folders, one for CSS and one for JS where the stylesheets and javascripts files are located respectively.The module creates two sub-folders under your files folder:files/customcssjs/cssfiles/customcssjs/jsJust put...
10 KB  
Programming  -  Class::ParamParser 1.041
This Perl 5 object class implements two methods which inherited classes can use to tidy up parameter lists for their own methods and functions. The two methods differ in that one returns a HASH ref containing named parameters and the other returns...
10.24 KB  
Development Tools  -  po2c 1.0.2
po2c is a small Perl script that takes a bunch of gettext (.po) language translation files from its command line arguments and dumps a C source code file containing all those messages and the necessary functions to use them without any other...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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