mscerts.net
 
Adaptive Technologies
Adobe AIR Apps
Artistic Software
Communications
Database
Desktop Environment
Documentation
Education
Games
Home Automation
Information Management
Internet
Multimedia
Office
Printing
Programming
Religion
Science
Science and Engineering
Security
System
Terminals
Text Editing&Processing
Utilities
 
 
myGengo 1.2.0
corejet.jira 1.0 Alpha 1
jsoncmd 0.0
correct_pycountry 0.12.2
Monsters 1.0
corejet.core 1.0 Alpha 1
Scope::Container::DBI 0.04
DBIx::DataModel 1.27
Word Golf 0.2.1
Plack::Middleware::LogWarn 0.001002
 
 
 

Tie::Scalar::MarginOfError 0.03

Scalars that have margins of error

Tie::Scalar::MarginOfError is a Perl module that allows you to have a scalar which has to stay within a certain margin of error. Your code will die (or execute what was passed in via the 'callback' subref) if the scalar's value goes outside this range.

You tie a variable, and give it an initial value and a tolerance. Your code will die (or execute what was given in the callback subref) if the value gets beyond +/- whatever you have set the tolerance to be.

In the SYNOPSIS example, $val will cause your code to execute &some_sub if it gets above 1.1 or below 0.9.

If no callback is defined, then the code will simply croak.

SYNOPSIS

 use Tie::Scalar::MarginOfError;

 tie my $val, 'Tie::Scalar::MarginOfError',
 {
 tolerance => 0.1,
 initial_value => 1,
 callback => \&some_sub,
 };

Requirements:

· Perl

  Other
-   RSS2Leafnode 36
-   Parse::Indented 0.02
-   SOAP::Simple 0.00_03
-   Term::Size::Any 0.001
-   TAP::Harness::JUnit 0.32
-   SNMP::Class 0.15
-   SHA 2.01
-   Net::Vypress::Chat 0.72.1
-   Math::BigInt::Random::OO 0.03
-   Mail::Sender 0.8.16
-   HTML::Template::HTX 0.07
-   SquidGuard Manager 1.2
-   Funifs 1.1
-   Devel::FastProf 0.08
-   Convert::Moji 0.01
-   Config::GitLike 1.04
-   Class::Data::Reloadable 0.04
-   CatalystX::ListFramework 0.5
-   Capture::Tiny 0.08
-   CGI::Search 0.5
 
 
                mscerts.net