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

ex::override 1.1

  Date Added: April 04, 2010  |  Visits: 1.041

ex::override

Report Broken Link
Printer Friendly Version


Product Homepage
Download (112 downloads)



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 ); # MAKE THIS RIGHT "ex::override" is an easy way to override core perl functions. Overriding a function use ex::override length => &mylength, open => &myopen; Overriding a core function happens at compile time. Arguments are passed to "ex::override" in a name based, or hash style. The key is the name of the core function to override, the value is your subroutine to replace the cores. Using an overriden funtion Nothing changes on the surface. If you override "stat", then you still use "stat" the same way. NOTE: This is only true if you are keeping the same prototype as the function youve overriden. To do this, you must define your prototype: use ex::override values => sub (%) { values %{+shift} }; If you dont use this same prototype or force yourself to use the function the same, you can extend the functionality of a core function: # length of all arguments passed to length() use ex::override length => sub { length join , @_ }; Overriding a function globaly Dont do this without a very good reason! "ex::override" allows you the ability to override core functions globaly. Any packages that inherit from yours will use your function override. There are good reasons for doing this, if you think you need to, make sure you have a good reason. use ex::override GLOBAL_length => sub { # prevent someone from passing a list croak "Dont do that!" if @_ > 1; length shift }; NOTE: If you globaly override a function in a package, only that package can remove it. Removing your override This works the same way that "no strict" works. no ex::override; # remove _all_ overrides no ex::override values; no ex::override GLOABL_length;.

Requirements: No special requirements
Platforms: Linux
Keyword: Core Exoverride Function Length Libraries Make Make This Right Override Perl Programming Right Ucfirst
Users rating: 0/10

License: Freeware Size: 4.1 KB
USER REVIEWS
More Reviews or Write Review


EX::OVERRIDE RELATED
Libraries  -  DPKG::Make 0.1
DPKG::Make is a Perl module for cleanly generate an Debian package (.dpkg). SYNOPSIS use DPKG::Make; # The "Manifest": list of files that will comprise the software package. my @filelist=(tmproot/file1.txt, tmproot/file2.txt,...
7.17 KB  
Communication  -  HistConnect 1.0
This Function HistConnect will make a smooth histogram for a signal or image consisting of a few samples. The function assumes correlation between the samples, and implicitly generates new linear-interpolated samples between the originate samples....
10 KB  
Libraries  -  ffcall 1.10
ffcall is a foreign function call libraries. This is a collection of four libraries which can be used to build foreign function call interfaces in embedded interpreters. The four packages are: avcall calling C functions with variable...
911.36 KB  
Audio Tools  -  CGIcast
CGIcast is a selection of perl scripts which are intended to make it possible to perform live internet radio. Typically these accounts are about $5 a month compared with $15/month which you would pay to someone like live365.com to host your...
10.24 KB  
MP3 Tools  -  Rock Band 2 MIDI 0.17
This is a little program I wrote because I wanted to use my Rock Band 2 drums as a handy MIDI controller for my digital audio workstation, and there didn't seem to be any freely available software to make this easy to do. The user interface isn't...
31 KB  
Card Games  -  Spider Solitaire 4-Suit 1.0
Free online 4-suit dog spider solitaire card game. Win fast! Play to beat your best online solitaire score. Play card game dog solitaire free straight out of your browser. Multiple suits means more fun, and extra features make this card game the...
2.35 MB  
Audio Tools  -  gtranscode 0.3
gtranscode is a GTK+ GUI (graphical use interface) front-end for transcode written in order to make this powerful tool easier to use. Transcode is a powerful video and audio processing tool that can read in just about any format of video and/or...
19.46 KB  
Video Editors  -  Aura Free Video Converter 1.3.9
Free Video Converter is a gift from Aura4You. We make this video converter completely free for everyone. You can download and use this free video converter for any purpose. It's a free video converter for everybody. Aura Free Video Converter...
25.12 MB  
Home & Leisure  -  Media Companion 3.424 Beta / 3.400
Media Companion is a handy utility that offers the possibility to gather information from the Internet about your movies and make this information available to you in an organized manner. The information collected includes such things as posters,...
 
Modules  -  Stock Status Switch 1.0
Please be aware that this contribution is not completed, there are bugs and further work is needed to make this work properly. I am not a professional coder and would gratefully accept any corrections and improvements!If a product is set to 'off'...
 
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