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 30.068.412 Times

Hook::Filter 0.02

  Date Added: March 06, 2010  |  Visits: 568

Hook::Filter

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)

Hook::Filter is a runtime filtering layer on top of subroutine calls. SYNOPSIS Imagine you have a big program using a logging library that exports 3 functions called mydebug, myinfo and mywarn. Those functions generate far too much log, so you want to skip calling them except in some specific circumstances. In your main program, write: use Hook::Filter hook => ["mydebug","myinfo","mywarn"]; In all modules making use of the logging library, write: use Hook::Filter; Then create a file called ./hook_filter.rules. This file contains boolean expressions that specify when calls to the filtered subroutines should be allowed: # allow calls to mydebug only inside package My::Filthy:Attempt is_sub(mydebug) && from_pkg(My::Filthy::Attempt) # allow all calls to myinfo except from inside packages under the namespace My::Test:: is_sub(myinfo) && !from_pkg(/^My::Test/) # allow calls to mywarn from function do_stuff in package main # whose third argument is a message that does not match the string invalid login name is_sub(mywarn) && from_sub(do_stuff) && from_pkg(main) && !has_arg(3,/invalid login name/) # all other calls to myinfo, mydebug or mywarn will be skipped SYNOPSIS, Log::Dispatch Your program uses Log::Dispatch. You want to enable Hook::Filter on top of the methods log and log_to from Log::Dispatch everywhere at once. And you want to use the filter rules located in /etc/myconf/filter_rules.conf. Easy: in main, write: use Hook::Filter rules => /etc/myconf/filter_rules.conf, hook => [Log::Dispatch::log,Log::Dispatch::log_to];.

Requirements: No special requirements
Platforms: Linux
Keyword: Calls Hookfilter Libraries Myinfo Programming Runtime Subroutine Top You Want To
Users rating: 0/10

License: Freeware Size: 15.36 KB
HOOK::FILTER RELATED
Web Browsers  -  NETKIOSK Kiosk Browser 1.32
Netkiosk is ideal for information kiosks, public internet kiosks, schools, libraries or in any location where you want to secure a PC for public internet use. With the help of NETKIOSK Kiosk Browser you can easily create an Internet browsing...
 
Web Browsers  -  Netkiosk School & Library Basic
Netkiosk is ideal for information kiosks, public internet kiosks, schools, libraries or in any location where you want to secure a PC for public internet use. With the help of Netkiosk School & Library you can easily create an Internet browsing...
 
Web Browsers  -  NETKIOSK Kiosk Software 1.32
Netkiosk is ideal for information kiosks, public internet kiosks, schools, libraries or in any location where you want to secure a PC for public internet use. With the help of NETKIOSK Kiosk Software you can easily create an Internet browsing...
 
Libraries  -  SelfLoader 5.8.8
SelfLoader is a Perl module created to load functions only on demand. SYNOPSIS package FOOBAR; use SelfLoader; ... (initializing code) __DATA__ sub {.... This module tells its users that functions in the FOOBAR package are to be...
12.2 MB  
Programming  -  jclasslib bytecode viewer 3.0
JProfiler is an award-winning all-in-one Java profiler. JProfilers intuitive GUI helps you find performance bottlenecks, pin down memory leaks and resolve threading issues. Even though JProfiler has a powerful feature set, its a Java profiler...
1.7 MB  
Libraries  -  Babelj 0.1
Babelj is a language server for Java. Babelj allows programs written in practically any language to fully interact with Java. Client libraries currently exist for PHP3 and Java. Babelj can be used as an out of the box bridge between PHP and Java...
95.23 KB  
Books  -  20 Days to the Top 1.1.1
Six Voices and Tapstack are Powered By CPRIME. Learn more at http://bit.ly/getcprime. 20 Days to the Top by Brian Sullivan Do you want to be your company's top performer? Do you want to be famous in your industry? And do you want to...
10.9 MB  
Utilities  -  HYD Emergency Calls 1.0
Do you often find yourself in emergency situations? Do you want to reach your loved ones in one touch? Are you vexed up using emergency apps that doesnt list the contact numbers of services in you locality? Worry not!! HYD Emergency calls is one...
6.6 MB  
Entertainment  -  bollywood top 10 of 2012 1.1.0.0
Bollywood top 10 of 2012 contain all you want to know about the top stars, movies and songs of 2012. This version of Bollywood top 10 of 2012 contain Wallpapers, bio, videos, and audio links of following - Top 10 actors Top 10 beautiful...
16 MB  
Social Networking  -  My Facebook Top Likers 1.0.0.0
do you want to know how many likes did you receive on Facebook , do you want how many likes did u received from each friend of yours in Facebook? .... My Facebook Top Likers will tell you all this information on your last post count as you request...
1024 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