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.190.494 Times

perlfilter 5.8.8

  Date Added: April 01, 2010  |  Visits: 855

perlfilter

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



perlfilter package contains Perl source filters. This article is about a little-known feature of Perl called source filters. Source filters alter the program text of a module before Perl sees it, much as a C preprocessor alters the source text of a C program before the compiler sees it. This article tells you more about what source filters are, how they work, and how to write your own. The original purpose of source filters was to let you encrypt your program source to prevent casual piracy. This isnt all they can do, as youll soon learn. But first, the basics. CONCEPTS Before the Perl interpreter can execute a Perl script, it must first read it from a file into memory for parsing and compilation. If that script itself includes other scripts with a use or require statement, then each of those scripts will have to be read from their respective files as well. Now think of each logical connection between the Perl parser and an individual file as a source stream. A source stream is created when the Perl parser opens a file, it continues to exist as the source code is read into memory, and it is destroyed when Perl is finished parsing the file. If the parser encounters a require or use statement in a source stream, a new and distinct stream is created just for that file. The diagram below represents a single source stream, with the flow of source from a Perl script file on the left into the Perl parser on the right. This is how Perl normally operates. file -------> parser There are two important points to remember: Although there can be any number of source streams in existence at any given time, only one will be active. Every source stream is associated with only one file. A source filter is a special kind of Perl module that intercepts and modifies a source stream before it reaches the parser. A source filter changes our diagram like this: file ----> filter ----> parser If that doesnt make much sense, consider the analogy of a command pipeline. Say you have a shell script stored in the compressed file trial.gz. The simple pipeline command below runs the script without needing to create a temporary file to hold the uncompressed file. gunzip -c trial.gz | sh In this case, the data flow from the pipeline can be represented as follows: trial.gz ----> gunzip ----> sh With source filters, you can store the text of your script compressed and use a source filter to uncompress it for Perls parser: compressed gunzip Perl program ---> source filter ---> parser.

Requirements: No special requirements
Platforms: Linux
Keyword: Contains Perl File Libraries Parser Perl Perlfilter Programming Script Source Source Filter Source Filters Stream
Users rating: 0/10

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


PERLFILTER RELATED
Network & Internet  -  MultipartRequest File Upload parser 2.0B9
MultipartRequest File Upload parser provides a HttpServletMultipartRequest class that extends the HttpServletRequestWrapper implementation to provide methods for handling multipart form data. The project supports Servlets using Java 1.2 or later....
204.8 KB  
Libraries  -  Doc::Perlish 0.14
Doc::Perlish is a Perl module that contains Perl Documentation Tools. SYNOPSIS my $doc = Doc::Perlish->new( type => "POD", input => "source.pod" ); # simple conversions; my $html = $doc->to_html; # DOM-style interface; see...
56.32 KB  
Libraries  -  B::Lint 1.09
B::Lint module contains Perl lint. SYNOPSIS perl -MO=Lint[,OPTIONS] foo.pl The B::Lint module is equivalent to an extended version of the -w option of perl. It is named after the program lint which carries out a similar process for C...
17.41 KB  
Libraries  -  Statistics::Cluto 0.01
Statistics::Cluto package contains Perl binding for CLUTO. SYNOPSIS use Statistics::Cluto; use Data::Dumper; my $c = new Statistics::Cluto; $c->set_dense_matrix(4, 5, [ [8, 8, 0, 3, 2], [2, 9, 9, 1, 4], [7, 6, 1, 2, 3], [1, 7, 8, 2,...
27.65 KB  
Libraries  -  perlrecharclass 5.9.5
perlrecharclass package contains Perl regular expression character classes. The top level documentation about Perl regular expressions is found in perlre. This manual page discusses the syntax and use of character classes in Perl Regular...
14.8 MB  
Libraries  -  Speech::Recognizer::ViaVoice 0.02
Speech::Recognizer::ViaVoice contains Perl wrappers for IBMs ViaVoice speech Recognizer library. SYNOPSIS use Speech::Recognizer::ViaVoice; $| = 1; if (0 == connectEngine) { if ( 0 == defineVocab(myTestVocab, [hello,world,quit]) ) { print...
8.19 KB  
Libraries  -  Polymorphic XML Parser 1.1.6
Polymorphic XML Parser is a validating XML parser for the programming language Objective Caml. In October, 1999, I started writing a validating XML parser for OCaml; the first published versions have been called "Markup" (simply because the...
614.4 KB  
Libraries  -  File::Attributes::Recursive 0.02
File::Attributes::Recursive module contains inherit file attributes from parent directories. SYNOPSIS Works like File::Attributes, but will recurse up the directory tree until a matching attribute is found. EXPORT None, by default. Specify...
25.6 KB  
Libraries  -  Apache::AxKit::Language::SAXMachines 1.6.2
Apache::AxKit::Language::SAXMachines is a Perl module that can transform Content With SAX Filters. SYNOPSIS # add the style processor mapping AxAddStyleMap application/x-saxmachines Apache::AxKit::Language::SAXMachines # add the processor...
307.2 KB  
Libraries  -  Gnome Devtool Libraries 0.7.0
Gnome Devtool Libraries project contains components and libraries that are intended to be shared between GNOME development tools, including gnome-debug, gnome-build, and anjuta2. The current pieces of GDL include: - A symbol browser bonobo...
583.68 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