Scalars
Tie::CharArray module can access Perl scalars as arrays of characters. SYNOPSIS use Tie::CharArray; my $foobar = a string; tie my @foo, Tie::CharArray, $foobar; $foo[0] = A; # $foobar = A string push @foo, !; # $foobar = A string! print "@foon"; # prints: A s t r i n g ! tie my @bar,...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (96): Tie::CharArray Download |
Scalar::Footnote is a Perl module that can attach hidden scalars to references. SYNOPSIS use Data::Dumper; use Scalar::Footnote; my $obj = Foo->new; # attach invisible footnote to $obj: $obj->Scalar::Footnote::set( my_key => my footnote ); print Dumper( $obj ); # get it back: my...
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (94): Scalar::Footnote Download |
Monitor and plot 2 or 3 PV scalars using the XAL channel correlator.*
Platforms: Mac
License: Shareware | Cost: $0.00 USD | Size: 10.24 KB | Download (35): XYZ Correlator Download |
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;...
Platforms: *nix
License: Freeware | Size: 13.31 KB | Download (95): Readonly Download |
Tie::Scalar::Sticky is a Perl module with block assignments to scalars. SYNOPSIS use strict; use Tie::Scalar::Sticky; tie my $sticky, Tie::Scalar::Sticky; $sticky = 42; $sticky = ; # still 42 $sticky = undef; # still 42 $sticky = 0; # now its zero tie my $sticky, Tie::Scalar::Sticky...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (88): Tie::Scalar::Sticky Download |
The function arg2vars serves for assigning of values from input argument(s) to variables declared in the output list in the place ofthe function calling. Not assigned output variables are empty, while superfluous arguments are cut to a number of output variables. Number of allocated items is a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Multiple assignment Download |
Useful helper function that rounds scalars, vectors or matrices smaller/bigger than zero at a defined place after the decimal point.Needs two input arguments to work properly: out = sRound(val, precision)Usage: out = sRound(val, prec)Example1: a = sRound(0.46,1); a = 0.5000Example2: b =...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Round values after the decimal point Download |
Built-in function ismatrix() (2010b) returns 1 for scalars, vectors, strings, and empty variables, as well as for matrices.ismatrix1() corrects it to return 1 only for matrices.It returns 0 for for scalars, vectors, strings, and empty variables.ismatrix1_test gives examples of using ismatrix and...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (51): ismatrix1 Download |
This m-file function can be used in any area where the total electrical resistance of parallel resistors is required.Example usage:>> z = Rparallel3(1,1,1)z = 0.3333>>By using 'varargin' Rparallel3 can take a variable number of input arguments (scalars only) allowed. I got the idea for this...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Compute the total resistance of n resistors in parallel Download |
Language::Basic::Variable is a Perl module to handle parsing and implementing BASIC variables. SYNOPSIS See Language::Basic for the overview of how the Language::Basic module works. This pod page is more technical. There are two sorts of variables: Arrays and Scalars. Each of those classes...
Platforms: *nix
License: Freeware | Size: 52.22 KB | Download (92): Language::Basic::Variable Download |
Stream::Reader is a stream reader Perl class. SYNOPSIS # Input stream can be reference to TYPEGLOB or SCALAR, output stream # can be the same types or undefined # Constructor $stream = Stream::Reader->new( *IN, { Limit => $limit, BuffSize => $buffsize, Mode => UB } ); # Reading all...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (108): Stream::Reader Download |
Nasal is a language that I wrote for use in a personal project. Ostensibly it was because I was frustrated with the dearth of small-but-complete embeddable scripting languages, but of course I really wrote it because it was fun. It is still young and incomplete in a few places, but is under...
Platforms: *nix
License: Freeware | Size: 102.4 KB | Download (99): Nasal Download |
COPE is a CORBA implemented in Perl. This documents describes the steps you take when writing a CORBA application in Perl using COPE. First the basics: the laguage binding used. Scalar types char The char type is represented as a 1-character perl string, like a. octet octet is...
Platforms: *nix
License: Freeware | Size: 38.91 KB | Download (94): COPE Download |
Image::ParseGIF can parse a GIF image into its compenent parts. SYNOPSIS use Image::ParseGIF; $gif = new Image::ParseGIF ("image.gif") or die "failed to parse: $@n"; # write out a deanimated version, showing only the first frame $gif->deanimate(0); # same again, manually printing each...
Platforms: *nix
License: Freeware | Size: 18.43 KB | Download (105): Image::ParseGIF Download |
Acme::Hyperindex is a Perl module to look deep into structures using a list of indexes. SYNOPSIS use strict; use Acme::Hyperindex; my @struct = ( { j_psi => [qw( eta_prime phi kaon )] }, { j_psi => [qw( selectron down tau_sneutrino )] }, { j_psi => [qw( upsilon gluino photino )] } );...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (97): Acme::Hyperindex Download |
Bio::NEXUS::TreesBlock is a Perl module that represents TREES block of a NEXUS file. SYNOPSIS if ( $type =~ /trees/i ) { $block_object = new Bio::NEXUS::TreesBlock( $block_type, $block, $verbose ); } If a NEXUS block is a Trees Block, this module parses the block and stores the tree data....
Platforms: *nix
License: Freeware | Size: 153.6 KB | Download (91): Bio::NEXUS::TreesBlock Download |
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...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (90): Variable::Alias Download |
Devel::FindGlobals is a Perl module to find global variables and their size. SYNOPSIS use Devel::FindGlobals; print print_globals_sizes(); This module just runs around and over the symbol table, finds global variables, gets their sizes with Devel::Size, and then prints them out....
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (88): Devel::FindGlobals Download |
Perl6::Currying is a Perl 6 subroutine currying for Perl 5. SYNOPSIS use Perl6::Currying; sub add ($a,$b) { $a + $b } # Define a sub with named params print add(1,2); # Call it my $incr = &add.prebind(a=>1); # Bind the $a argument to 1 # to create an increment subroutine print...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (89): Perl6::Currying Download |
Class::Std::Utils is a Perl module for utility subroutines for building "inside-out" objects. SYNOPSIS use Class::Std::Utils; # Constructor for anonymous scalars... my $new_object = bless anon_scalar(), $class; # Convert an object reference into a unique ID number... my $ID_num = ident...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (93): Class::Std::Utils Download |