Language::Expr::EvaluatorRole - Specification for Language::Expr interpreter/compiler
version 0.19
Instead of parsing parts themselves, consumers can use this method (typically in their rule_dquotestr). This method converts each Expr escapes into Perl string and variables. For example:
parse_dquotestr('abc', "\\t", '\\\\', '$foo', ' ', '${bar baz}') -> ( {type=>"STR", value=>'abc\t\\'}, {type=>"VAR", value=>'foo'}, {type=>"STR", value=>' '}, {type=>"VAR", value=>'bar baz'}, )
Instead of parsing parts themselves, consumers can use this method (typically in their rule_squotestr). This method converts Expr single quoted string into Perl string.
parse_dquotestr('abc', "\\t", '\\\\', '$foo', ' ', '${bar baz}') -> ( {type=>"STR", value=>'abc\t\\$foo ${bar baz}'}, )
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2012 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.
To install Language::Expr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Expr
CPAN shell
perl -MCPAN -e shell install Language::Expr
For more information on module installation, please visit the detailed CPAN module installation guide.