Template::Ast v.0.02

Advertisement
Advertisement

Template::Ast is a Perl module to process ASTs for Perl Template Toolkit. SYNOPSIS use Template::Ast, # Rebuild AST stored in file: $ast = Template::Ast->read(foo.ast) or die Template::Ast->error(), # Writing existing AST to file: $ast = { Marry => [24, F], John => [21, M] }, Template::Ast->write($ast, foo.ast) or die Template::Ast->error(), $ast = Template::Ast->merge([1,2,3], undef), # [1,2,3] $ast = Template::Ast->merge(undef, [1,2,3]), # [1,2,3] $ast = Template::Ast->merge(undef, undef), # undef $ast = Template::Ast->merge({A=>1,B=>2}, [C]), # [C] $ast = Template::Ast->merge([1,2,3], [5,6]), # [5,6] $ast = Template::Ast->merge([{A=>1},2], 5), # 5 $ast = Template::Ast->merge({A=>1,B=>2}, {C=>3}), # {A=>1,B=>2,C=>3} $ast = Template::Ast->merge({A=>1,B=>2}, {B=>3}), # {A=>1,B=>3} # {A=>1,B=>2} $ast = Template::Ast->merge({A=>1,B=>undef}, {A=>undef,B=>2}), Template::Ast->merge( {A=>1,B=>{C=>1,D=>2}}, {B=>{C=>1,D=>3,E=>4}} ), # {A=>1,B=>{C=>1,D=>3,E=>4}} Template::Ast->merge( {A=>1,B=>{C=>[1,2]}}, {B=>{C=>[3,4]}} ), # {A=>1,B=>{C=>[3,4]}} print Template::Ast->dump([$vars], [vars]), ASTs are essential in the programming model based on Perl Template Toolkit. This module provides some easy interface to do the dirty work involved in AST handling. The term AST used here are referred to any Perl referece pointed to a complex data structure, such as a nested hash, a nested array, or such.

Template::Ast is a Perl module to process ASTs ...

 
  • Template::Ast
  • 0.02
  • Agent Zhang
  • Any Platform
  • Perl Artistic
  • 20 Kb
  • 292
 
 

Review Template::Ast

  • captcha
 

Other software of Agent Zhang
  • Makefile::GraphViz  v.0.18Makefile:GraphViz 0.18 offers users with an easy to use yet smart module which enables you to draw building flowcharts from Makefiles using GraphViz. This module uses Makefile:Parser to render user's Makefiles via the amazing GraphViz module. Before ...
  • Makefile::Parser  v.0.11Makefile::Parser is a Simple Parser for Makefiles. SYNOPSIS use Makefile::Parser, $parser = Makefile::Parser->new, # Equivalent to ->parse(Makefile), $parser->parse or die Makefile::Parser->error, # Get last value assigned to the ...
  • SearchAll  v.0.4.2SearchAll is a handy side-by-side search engine comparison tool which allows you to search at most 3 different search engines simultaneously and benchmark their performance in the status bar. With this extension, you can compare 2 to 3 search ...

New Components & Libraries software
  • GeoDLL  v.20.00GeoDLL is a Geodetic Development Kit / Geodetic Function Library with worldwide 2D and 3D Coordinate Transformation, Datum Shift, Meridian Convergence and Extra Parameter with highest accuracy. Helmert, NTv2, HARN, INSPIRE, EPSG, DEM and much more ...
  • Mgosoft PCL To PDF SDK  v.12.1.2Mgosoft PCL To PDF Converter is a fast, affordable way to batch convert your LaserJet PCL print files to industry standard PDF (Portable Document Format).
  • FsMediaLibrary.NET  v.2019.11.0fsMediaLibrary is a .NET library designed to save time developing a Media Player or any application that requires the storage of Audio files, Playlist and Track information including cover artwork and Lyrics.
  • Luxand FaceSDK  v.7.2Real-time precision face recognition and identification SDK for C++, C#, Objective C, VB, Java and Delphi. FaceSDK enables developers to build web, Windows, Linux, MacOS X, iOS and Android applications with face recognition functionality.
  • Template and Menu Hot Sauce  v.7.0Template and Menu Hot Sauce 7.0 is an efficient, high-quality utility which creates both the menu and Web site in five minutes.Major Features: Makes horizontal, vertical, tree menus.Works with static and dynamic pages.Can easily do Web site from ...
  • Templates for "Fashion" Helpdesk texts  v.1.00Employ MS-Outlook as convenient Helpdesk for customer queries to Clothing- / Fashion-companies. This Plugin for ReplyButler helps you at the keeping / creation of the Fashion-text modules for the helpdesk. One receives a predefined structure with the ...