Steven Haryanto > Language-Expr > Language::Expr::Compiler::PHP

Download:
Language-Expr-0.23.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.23   Source  

NAME ^

Language::Expr::Compiler::PHP - Compile Language::Expr expression to PHP

VERSION ^

This document describes version 0.23 of module Language::Expr::Compiler::PHP (in distribution Language-Expr), released on 2014-05-01.

SYNOPSIS ^

 use Language::Expr::Compiler::PHP;
 my $phpc = Language::Expr::Compiler::PHP->new;
 print $phpc->php('[1, 2, 3])'); # prints: array(1, 2, 3)

 # map Expr function to PHP function
 $phpc->func_mapping->{uc} = 'strtoupper';
 print $phpc->php(q{uc("party like it's ") . ceil(1998.9)}); # prints: strtoupper("party like it's " + ceil(1998.9)

DESCRIPTION ^

Compiles Language::Expr expression to PHP code. Some notes:

METHODS ^

php($expr) => $php_code

Convert Language::Expr expression into PHP code. Dies if there is syntax error in expression.

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Language-Expr.

SOURCE ^

Source repository is at https://github.com/sharyanto/perl-Language-Expr.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Language-Expr

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: