Tie::Expression - Let any %hash interpolate any expression.
$Id: Expression.pm,v 0.1 2008/07/01 17:56:27 dankogai Exp dankogai $
use Tie::Expression; tie my %expression, 'Tie::Expression'; print "PI = $expression{ 4 * atan2(1,1) }.\n";
This module makes any tied hash a universal interpolator. Just feed its key any expression and the result of the expression becomes the value.
It is known that @{[ expression ]} is a univasal interpolator but the solution with this module is more elegant.
@{[ expression ]}
The implementation is deceptively simple. Just check the source and you will find this module is just six lines long!
Percent::Underscore
Nothing.
Dan Kogai, <dankogai at dan.co.jp>
<dankogai at dan.co.jp>
Please report any bugs or feature requests to bug-tie-expression at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Tie-Expression. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-tie-expression at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Tie::Expression
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Tie-Expression
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Tie-Expression
CPAN Ratings
http://cpanratings.perl.org/d/Tie-Expression
Search CPAN
http://search.cpan.org/dist/Tie-Expression
None so far.
Copyright 2008 Dan Kogai, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Tie::Expression, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::Expression
CPAN shell
perl -MCPAN -e shell install Tie::Expression
For more information on module installation, please visit the detailed CPAN module installation guide.