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

Text::MacroScript 1.38

  Date Added: September 06, 2010  |  Visits: 992

Text::MacroScript

Report Broken Link
Printer Friendly Version


Product Homepage
Download (128 downloads)



Text::MacroScript is a macro pre-processor with embedded perl capability. SYNOPSIS use Text::MacroScript ; # new() for macro processing my $Macro = Text::MacroScript->new ; while( <> ) { print $Macro->expand( $_ ) if $_ ; } # Canonical use (the filename improves error messages): my $Macro = Text::MacroScript->new ; while( <> ) { print $Macro->expand( $_, $ARGV ) if $_ ; } # new() for embedded macro processing my $Macro = Text::MacroScript->new( -embedded => 1 ) ; # Delimiters default to <: and :> # or my $Macro = Text::MacroScript->new( -opendelim => [[, -closedelim => ]] ) ; while( <> ) { print $Macro->expand_delimited( $_, $ARGV ) if $_ ; } # Create a macro object and create initial macros/scripts from the file(s) # given: my $Macro = Text::MacroScript->new( -file => [ local.macro, ~/.macro/global.macro ] ) ; # Create a macro object and create initial macros/scripts from the # definition(s) given: my $Macro = Text::MacroScript->new( -macro => [ [ MAX_INT => 32767 ], ], -script => [ [ DHM2S => [ my $s = (#0*24*60*60)+(#1*60*60)+(#2*60) ; "#0 days, #1 hrs, #2 mins = $s secs" ], ], -variable => [ *MARKER* => 0 ], ) ; # We may of course use any combination of the options. my $Macro = Text::MacroScript->new( -comment => 1 ) ; # Create the %%[] macro. # define() $Macro->define( -macro, $macroname, $macrobody ) ; $Macro->define( -script, $scriptname, $scriptbody ) ; $Macro->define( -variable, $variablename, $variablebody ) ; # undefine() $Macro->undefine( -macro, $macroname ) ; $Macro->undefine( -script, $scriptname ) ; $Macro->undefine( -variable, $variablename ) ; # undefine_all() $Macro->undefine( -macro ) ; $Macro->undefine( -script ) ; $Macro->undefine( -variable ) ; # list() @macros = $Macro->list( -macro ) ; @macros = $Macro->list( -macro, -namesonly ) ; @scripts = $Macro->list( -script ) ; @scripts = $Macro->list( -script, -namesonly ) ; @variables = $Macro->list( -variable ) ; @variables = $Macro->list( -variable, -namesonly ) ; # load_file() - always treats the contents as within delimiters if we are # doing embedded processing. $Macro->load_file( $filename ) ; # expand_file() - calls expand_embedded() if we are doing embedded # processing otherwise calls expand(). $Macro->expand_file( $filename ) ; @expanded = $Macro->expand_file( $filename ) ; # expand() $expanded = $Macro->expand( $unexpanded ) ; $expanded = $Macro->expand( $unexpanded, $filename ) ; # expand_embedded() $expanded = $Macro->expand_embedded( $unexpanded ) ; $expanded = $Macro->expand_embedded( $unexpanded, $filename ) ; This bundle also includes the macro and macrodir scripts which allows us to expand macros without having to use/understand Text::MacroScript.pm, although you will have to learn the handful of macro commands available and which are documented here and in macro. macro provides more documentation on the embedded approach. The macroutil.pl library supplied provides some functions which you may choose to use in HTML work for example..

Requirements: No special requirements
Platforms: Linux
Keyword: Embedded Embedded Perl Expand Libraries Macro Macro- Macroscript New Programming Textmacroscript Undefine
Users rating: 0/10

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


TEXT::MACROSCRIPT RELATED
Programming  -  C Embedded Perl Library 0.1
C Embedded Perl is an easy-to-use library for executing perl codes from C programs.
78.33 KB  
Libraries  -  Tclperl 3.1
Tclperl project allows the execution of Perl code from within a TCL interpreter using one or several embedded Perl interpreters. This package allows the execution of Perl code from a Tcl interpreter, as in: package require tclperl set...
 
Libraries  -  Module::Starter::Smart 0.0.2
Module::Starter::Smart is a Perl module that lets you add new modules into an existing distribution. SYNOPSIS use Module::Starter qw/Module::Starter::Simple Module::Starter::Smart/; Module::Starter->create_distro(%args); # or in...
4.1 KB  
Programming  -  Apache::XPP 2.02
Apache::XPP is an HTML parser class which on run time compiles and runs embedded Perl code. SYNOPSIS use Apache::XPP; my $xpp = Apache::XPP->new( Apache->request ); $xpml->run;
30.72 KB  
Log Analyzers  -  Apache::ASP 2.57
Apache::ASP provides an Active Server Pages port to the Apache Web Server with Perl scripting only, and enables developing of dynamic web applications with session management and embedded Perl code. There are also many powerful extensions,...
512 KB  
Programming  -  NetSNMP::TrapReceiver 5.0401
NetSNMP::TrapReceiver is a Perl module used to register Perl subroutines into the Net-SNMP snmptrapd process. Net-SNMP MUST have been configured using --enable-embedded-perl. Registration of functions is then done through the snmptrapd.conf...
20.48 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
Libraries  -  List::RewriteElements 0.09
List::RewriteElements is a Perl module that can create a new list by rewriting elements of a first list. SYNOPSIS use List::RewriteElements; Constructor Simplest case: Input from array, output to STDOUT. $lre =...
26.62 KB  
Libraries  -  Tangram::Type::Extending 2.10
Tangram::Type::Extending is a Perl module for teaching Tangram about new types. Tangram::Type is the root of a hierarchy of classes that are responsible mapping individual field to SQL entities (columns in the simplest cases). There is one Type...
153.6 KB  
Libraries  -  Text::PORE 1.02
Text::PORE is a Perl Object Rendering Engine. pore intr.v. 1. To read or study carefully and attentively The American Heritage® Dictionary of the English Language, Fourth Edition SYNOPSIS How to use PORE to render Perl objects. use...
32.77 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