Subroutine
Tree::BPTree is a Perl implementation of B+ trees. SYNOPSIS use Tree::BPTree; # These arguments are actually the defaults my $tree = new Tree::BPTree( -n => 3, -unique => 0, -keycmp => sub { $_[0] cmp $_[1] }, -valuecmp => sub { $_[0] <=> $_[1] }, ); # index the entries in this...
Platforms: *nix
License: Freeware | Size: 17.41 KB | Download (92): Tree::BPTree Download |
Closure::Loop is a Perl module with redo, last, next for closure based loops. SYNOPSIS package MyIterator; use Closure::Loop; # mixin sub new { my $class = shift; return bless { }, $class; } sub forAll { my $self = shift; my $cb = pop || die "No callback"; for my $i (@_) { eval {...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (97): Closure::Loop Download |
Filter::Macro is a Perl module to make macro modules that are expanded inline. SYNOPSIS In MyHandyModules.pm: package MyHandyModules; use Filter::Macro; # lines below will be expanded into callers code use strict; use warnings; use Switch; use IO::All; use Quantum::Superpositions;...
Platforms: *nix
License: Freeware | Size: 13.31 KB | Download (104): Filter::Macro Download |
Time::Skew is a Perl module that computes local clock skew with respect to a remote clock. SYNOPISI use Time::Skew # Init Convex Hull and timing data my $hull=[]; my $result={}; # Iterate data point introduction Time::Skew::convexhull($result,$datapoint,$hull); This module supports...
Platforms: *nix
License: Freeware | Size: 45.06 KB | Download (100): Time::Skew Download |
Parse::Binary::FixedFormat::Variants is a Perl module to convert between variant records and hashes. Parse::Binary::FixedFormat supports variant record formats. To describe a variant structure, pass a hash reference containing the following elements to new. The object returned to handle variant...
Platforms: *nix
License: Freeware | Size: 31.74 KB | Download (89): Parse::Binary::FixedFormat::Variants Download |
Class::ParmList is a Perl module with methods for processing named parameter lists. SYNOPSIS use Class::ParmList qw(simple_parms parse_parms); $thingy->some_method({ -bgcolor => #ff0000, -textcolor => #000000 }); sub some_method { my ($self) = shift; my ($parm_ref) = @_; my $parms...
Platforms: *nix
License: Freeware | Size: 16.38 KB | Download (89): Class::ParmList Download |
Devel::DumpSizes is a Perl module to dump the name and size in bytes (in increasing order) of variables that are available at a give point in a script. SYNOPSIS use Devel::DumpSizes qw/dump_sizes/; &Devel::DumpSizes::dump_sizes(); Or,...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (91): Devel::DumpSizes Download |
File::DirCompare is a Perl module to compare two directories using callbacks. SYNOPSIS use File::DirCompare; # Simple diff -r --brief replacement use File::Basename; File::DirCompare->compare($dir1, $dir2, sub { my ($a, $b) = @_; if (! $b) { printf "Only in %s: %sn", dirname($a),...
Platforms: *nix
License: Freeware | Size: 8.19 KB | Download (102): File::DirCompare Download |
List::MRU is a Perl module that implements a simple fixed-size MRU-ordered list. SYNOPSIS use List::MRU; # Constructor $lm = List::MRU->new(max => 20); # Constructor with explicit eq subroutine for obj equality tests $lm = List::MRU->new(max => 20, eq => sub { $_[0]->stringify eq...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (100): List::MRU Download |
Blatte::Builtins is a Perl module with Blatte-callable intrinsics. SYNOPSIS package MyPackage; use Blatte::Builtins; eval(...compiled Blatte program...); This module defines the standard Blatte-callable intrinsic functions. A Blatte intrinsic is simply a Perl subroutine that (a) has...
Platforms: *nix
License: Freeware | Size: 31.74 KB | Download (87): Blatte::Builtins Download |
Perl6::Parameters is a module with Perl 6-style prototypes with named parameters. SYNOPSIS use Perl6::Parameters; sub mysub($foo, ARRAY $bar, *%rest) { ... } DETAILS Perl6::Parameters is a Perl module which simulates Perl 6s named parameters. (When I talk about "named parameters" I...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (91): Perl6::Parameters Download |
Inline::C is a Perl module that can Write Perl Subroutines in C. Inline::C is a module that allows you to write Perl subroutines in C. Since version 0.30 the Inline module supports multiple programming languages and each language has its own support module. This document describes how to use...
Platforms: *nix
License: Freeware | Size: 92.16 KB | Download (93): Inline::C Download |
SCZ application is a simple set of compression routines for compressing and decompressing arbitrary data. The initial set of routines implement new lossless compression algorithms. Restoration (decompression) is perfect. It is called SCZ, for simple compression format. SCZ is intended as a...
Platforms: *nix
License: Freeware | Size: 14.34 KB | Download (96): SCZ Download |
ex::override is a Perl pragma to override core functions. SYNOPSIS use ex::override ucfirst => sub { # make sure only the first # letter is uppercased ucfirst( lc( shift ) ); }; ucfirst( MAKE THIS RIGHT ); # Make this right no ex::override ucfirst; ucfirst( MAKE THIS RIGHT ); #...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (121): ex::override Download |
CGI::WeT::Modules::Calendar are Perl extensions to engine to allow calendar management. SYNOPSIS use CGI::WeT::Modules::Calendar (); This module provides rendering constructs to allow navigation through a set of calendars. Support is provided for multiple types of events in multiple...
Platforms: *nix
License: Freeware | Size: 40.96 KB | Download (99): CGI::WeT::Modules::Calendar Download |
CGI::WeT::Modules::News are Perl extensions to engine to allow article management. SYNOPSIS use CGI::WeT::Modules::News (); This module provides rendering constructs to allow navigation through a set of articles. Support is provided for multiple types of articles in multiple groupings (or...
Platforms: *nix
License: Freeware | Size: 40.96 KB | Download (104): CGI::WeT::Modules::News Download |
chilli_control is a script that takes a command-line argument telling it what to do with your smoothwall, ie connect, disconnect, or get the status. This version is designed for smoothwall version 2.0 beta. You will need to edit the script to set it up for your smoothwall. If you use the same...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (98): chilli_control Download |
Class::Observable is a Perl module that allows other classes and objects to respond to events in yours. SYNOPSIS # Define an observable class package My::Object; use base qw( Class::Observable ); # Tell all classes/objects observing this object that a state-change # has occurred sub...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (102): Class::Observable Download |
Test::Unit::Procedural Perl module contains a procedural style unit testing interface. SYNOPSIS use Test::Unit::Procedural; # your code to be tested goes here sub foo { return 23 }; sub bar { return 42 }; # define tests sub test_foo { assert(foo() == 23, "Your message here"); } sub...
Platforms: *nix
License: Freeware | Size: 75.78 KB | Download (95): Test::Unit::Procedural Download |
Tk::PerlMethodList is a Perl module to query the Symbol-table for methods (subroutines) defined in a class (package) and its parents. SYNOPSIS require Tk::PerlMethodList; my $instance = $main_window->PerlMethodList(); Tk::PerlMethodList is a Tk::Toplevel-derived widget. The window...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (87): Tk::PerlMethodList Download |