Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.213.576 Times

Devel::SelfStubber 5.8.8

  Date Added: October 04, 2010  |  Visits: 706

Devel::SelfStubber

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)



Devel::SelfStubber is a Perl module that can generate stubs for a SelfLoading module. SYNOPSIS To generate just the stubs: use Devel::SelfStubber; Devel::SelfStubber->stub(MODULENAME,MY_LIB_DIR); or to generate the whole module with stubs inserted correctly use Devel::SelfStubber; $Devel::SelfStubber::JUST_STUBS=0; Devel::SelfStubber->stub(MODULENAME,MY_LIB_DIR); MODULENAME is the Perl module name, e.g. Devel::SelfStubber, NOT Devel/SelfStubber or Devel/SelfStubber.pm. MY_LIB_DIR defaults to . if not present. Devel::SelfStubber prints the stubs you need to put in the module before the __DATA__ token (or you can get it to print the entire module with stubs correctly placed). The stubs ensure that if a method is called, it will get loaded. They are needed specifically for inherited autoloaded methods. This is best explained using the following example: Assume four classes, A,B,C & D. A is the root class, B is a subclass of A, C is a subclass of B, and D is another subclass of A. A / B D / C If D calls an autoloaded method foo which is defined in class A, then the method is loaded into class A, then executed. If C then calls method foo, and that method was reimplemented in class B, but set to be autoloaded, then the lookup mechanism never gets to the AUTOLOAD mechanism in B because it first finds the method already loaded in A, and so erroneously uses that. If the method foo had been stubbed in B, then the lookup mechanism would have found the stub, and correctly loaded and used the sub from B. So, for classes and subclasses to have inheritance correctly work with autoloading, you need to ensure stubs are loaded. The SelfLoader can load stubs automatically at module initialization with the statement SelfLoader->load_stubs();, but you may wish to avoid having the stub loading overhead associated with your initialization (though note that the SelfLoader::load_stubs method will be called sooner or later - at latest when the first sub is being autoloaded). In this case, you can put the sub stubs before the __DATA__ token. This can be done manually, but this module allows automatic generation of the stubs. By default it just prints the stubs, but you can set the global $Devel::SelfStubber::JUST_STUBS to 0 and it will print out the entire module with the stubs positioned correctly. At the very least, this is useful to see what the SelfLoader thinks are stubs - in order to ensure future versions of the SelfStubber remain in step with the SelfLoader, the SelfStubber actually uses the SelfLoader to determine which stubs are needed..

Requirements: No special requirements
Platforms: Linux
Keyword: Develselfstubber Dir Generate Lib Libraries Method Module Perl Perl Module Selfloader Selfloading Selfstubber Stubs
Users rating: 0/10

License: Freeware Size: 12.2 MB
USER REVIEWS
More Reviews or Write Review


DEVEL::SELFSTUBBER RELATED
Libraries  -  SQL::Generator 0.02
SQL::Generator is a Perl module to generate SQL-statements with oo-perl. SYNOPSIS use SQL::Generator; With this module you can easily (and very flexible) generate/construct sql-statements. As a rookie, you are used to write a lot of...
13.31 KB  
Modules  -  UC Free Order Payment Method 6.x-1.0-beta4
The UC Free Order Payment Method module works in conjunction with the payment checkout pane using the order total preview to present a "Free order" payment method to customers when their order total drops to $0.00 or less. By default, this method...
10 KB  
Libraries  -  Class::Classgen::New 3.03
Class::Classgen::New is a Perl module that creates the new() method for classes generated by classgen. SYNOPSIS Used within classgen. The main purpose of New.pm is to write the new() method for a class generated by classgen. It provides code...
24.58 KB  
Libraries  -  WSDL::Generator 0.02
WSDL::Generator is a Perl module to generate wsdl file automagically. SYNOPSIS use WSDL::Generator; my $wsdl = WSDL::Generator->new($init); Foo->a_method($param}; print $wsdl->get(Foo); You know folks out there who use another language...
686.08 KB  
Libraries  -  Barcode::Code128 2.01
Barcode::Code128 is a Perl module that can generate CODE 128 bar codes. SYNOPSIS use Barcode::Code128; $code = new Barcode::Code128; EXPORTS By default, nothing. However there are a number of constants that represent special characters...
14.34 KB  
Programming  -  local::lib 1.006000
local::lib is a Perl module that provides a quick, convenient way of bootstrapping a user-local Perl module library located within the user's home directory. It also constructs and prints out for the user the list of environment variables using...
30.72 KB  
Libraries  -  File::Listing 5.805
File::Listing is a Perl module to parse directory listing. SYNOPSIS use File::Listing qw(parse_dir); for (parse_dir(`ls -l`)) { ($name, $type, $size, $mtime, $mode) = @$_; next if $type ne f; # plain file #... } # directory listing can...
235.52 KB  
Libraries  -  Gtk2::Ex::MindMapView::Content::Picture 0.000001
Gtk2::Ex::MindMapView::Content::Picture is a Perl module to display a picture. HEIRARCHY Gtk2::Ex::MindMapView::Content +----Gtk2::Ex::MindMapView::Content::Picture SYNOPSIS use Gtk2::Ex::MindMapView::Content::Picture Displays a picture...
50.18 KB  
Libraries  -  ummf 1.02
ummf Perl module contains a driver for UMMF. SYNOPSIS ummf [-I dir] [-M MetaModel] [-m Main::Module] [-o {dir|-}] [-e exporter] input ... This is a driver for the UMMF toolkit. It translates UML input documents into the export targets...
686.08 KB  
Libraries  -  Java::SJ::Config 0.01
Java::SJ::Config is a Perl module that represents SJ Configuration File. It uses XML::XPath to parse configuration files and generates objects to represent the directives. Unless youre working on the module what you really want to know is what...
18.43 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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