Hook::PrePostCall 1.2 Alpha
Sponsored Links
Hook::PrePostCall 1.2 Alpha Ranking & Summary
File size:
0.003 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
885
Date added:
2007-05-23
Publisher:
Philippe Verdret
Hook::PrePostCall 1.2 Alpha description
Hook::PrePostCall is a Perl module that can add actions before and after a routine.
SYNOPSIS
require 5.000;
use Hook::PrePostCall;
sub try {
print STDERR "in try: @_n";
@_;
}
PrePostCall->new(
try,
sub {
print STDERR "pre: @_n";
# process the @_ content...if you want
@_; # defines the try arguments
},
sub {
print STDERR "post: @_n";
# process the @_ content...if you want
@_; # defines what the try returns
}
);
print try(10), "n";
new() creates a new object of the Hook::PrePostCall class. Arguments of the new method are:
1. the name of the primary routine you want to "overload",
2. an anonymous routine to call before the primary routine,
3. an anonumous routine to call after the primary routine.
If the name of the primary subroutine has not an explicit package prefix, it is assumed to be the name of a subroutine in the current package of the caller of the new() method.
The pre routine acts as a filter of the primary routine arguments. The post routine acts as a filter of what the primary returns.
new() can be used as a class or an object method. When used as an object method the derived definition is built from the initial definition of the primary routine.
derived() Returns the overloaded routine.
pre() Returns or set the pre action part.
post() Returns or set the post action part.
primary() Returns the primary routine.
restore() Retore initial definition of the primary routine.
SYNOPSIS
require 5.000;
use Hook::PrePostCall;
sub try {
print STDERR "in try: @_n";
@_;
}
PrePostCall->new(
try,
sub {
print STDERR "pre: @_n";
# process the @_ content...if you want
@_; # defines the try arguments
},
sub {
print STDERR "post: @_n";
# process the @_ content...if you want
@_; # defines what the try returns
}
);
print try(10), "n";
new() creates a new object of the Hook::PrePostCall class. Arguments of the new method are:
1. the name of the primary routine you want to "overload",
2. an anonymous routine to call before the primary routine,
3. an anonumous routine to call after the primary routine.
If the name of the primary subroutine has not an explicit package prefix, it is assumed to be the name of a subroutine in the current package of the caller of the new() method.
The pre routine acts as a filter of the primary routine arguments. The post routine acts as a filter of what the primary returns.
new() can be used as a class or an object method. When used as an object method the derived definition is built from the initial definition of the primary routine.
derived() Returns the overloaded routine.
pre() Returns or set the pre action part.
post() Returns or set the post action part.
primary() Returns the primary routine.
restore() Retore initial definition of the primary routine.
Hook::PrePostCall 1.2 Alpha Screenshot
Advertisements
Hook::PrePostCall 1.2 Alpha Keywords
PrePostCall
PrePostCall 1.2 Alpha
STDERR
Before and After
Perl module
Can Add
1.2 Alpha
routine
primary
alpha
1.2
new
returns
Hook::PrePostCall
HookPrePostCall
Hook::PrePostCall 1.2 Alpha
Bookmark Hook::PrePostCall 1.2 Alpha
Hook::PrePostCall 1.2 Alpha Copyright
WareSeeker periodically updates pricing and software information of Hook::PrePostCall 1.2 Alpha full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Hook::PrePostCall 1.2 Alpha Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
tummy tuck before and after
before and after magazine
liposuction before and after
before and after pictures
before and after steroids
plastic surgery before and after
before and after pictures of breast augmentation
before and after weight loss pictures
before and after mag
before and after weight loss
before and after makeup
smart lipo before and after
routines for children
primarygames
before and after lipo
rhinoplasty before and after
before and after plastic surgery
before and after transformation
Related Software
GameQ project is a PHP game server query class. Free Download
GNUsTicker is a GNOME panel applet RSS aggregator. Free Download
TorApplet is a simple GNOME applet for managing and monitoring the basic activities of the Tor daemon. Free Download
ENSps project is a new programming system developed on Mono, Gtk# and Boo Scripting Language. Free Download
gSculpt project is an open source, procedural 3D polygon modeller. Free Download
wxHarbour is wxWidgets GUI for [x]Harbour. Free Download
DLibs is a PHP framework built keeping in mind the KISS rule. Free Download
WWW::Yahoo::Groups::Utils is a Perl module with Sundry utility routines for WYG. Free Download
Latest Software
Popular Software
Favourite Software