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

ex::override 1.1

  Date Added: April 04, 2010  |  Visits: 886

ex::override

Report Broken Link
Printer Friendly Version


Product Homepage
Download (104 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  -  Make 1.00
Make is a Perl module for processing makefiles. SYNOPSIS require Make; my $make = Make->new(...); $make->parse($file); $make->Script(@ARGV) $make->Make(@ARGV) $make->Print(@ARGV) my $targ = $make->Target($name);...
12.29 KB  
Development Tools  -  3D Plotter for Infinite Potential Well 1.0
Example in screenshot generated by:energyBoxPlot([10e-9,10e-9,10e-9],[2,2,1],[50e-11,50e-11,50e-11],100)There are a few improvements I want to make to this function; hopefully I have time to do so. At this point, you may have to play with things a...
10 KB  
Lifestyle  -  Make Bracelet 1.0.0.0
If you like making things with your own hands and expressing your personality by means of bright and remarkable ornaments then it's time to make a couple of bracelets with Make Bracelet! This app is a collection of step-by-step instructions for...
29 MB  
Lifestyle  -  Make Up Mirror 1.0.0.0
Make up Mirror is a simple app that uses a front facing camera to provide the function of a small make up mirror. Requirements: Windows Phone 8.1, Windows Phone 8, Windows Phone 7.5
1024 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  
Desktop Utilities  -  taskbar-compiz 0.1
taskbar-compiz is a modified taskbar applet for kicker to make it work with compiz. The work is inspired by kicker-compiz pager (http://www.kde-apps.org/content/show.php?content=46021) Please note: currently you cant change "Show windows from...
634.88 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  
Screen Savers  -  Building Block Toys 360 1.0
Building block toys in a circle make up this unusual screensaver, suitable for kids of all ages ;)
1.6 MB  
Graphics Editors  -  Recovery CorelDraw Tool Free 1.0
Get Recovery CorelDraw Tool Free anytime you encounter the damage of CDR files and make sure this application is powerful enough for recovery CorelDraw purposes. Do not worry about the damage of CDR files anymore, this method of infosecurity...
3.01 MB  
Programming  -  makenew 1.2
mknew: a bash shell function library that provides 'make' functionality to the shell. A user may write a simple shell script to invoke the usual software build procedures: compilation, testing, packaging, and distribution.
20 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.11.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