Tie::Expression - Let any %hash interpolate any expression.


Tie-Expression documentation  | view source Contained in the Tie-Expression distribution.

Index


NAME

Top

Tie::Expression - Let any %hash interpolate any expression.

VERSION

Top

$Id: Expression.pm,v 0.1 2008/07/01 17:56:27 dankogai Exp dankogai $

SYNOPSIS

Top

  use Tie::Expression;
  tie my %expression, 'Tie::Expression';
  print "PI = $expression{ 4 * atan2(1,1) }.\n";

DISCUSSION

Top

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.

The implementation is deceptively simple. Just check the source and you will find this module is just six lines long!

SEE ALSO

Top

Percent::Underscore

EXPORT

Top

Nothing.

AUTHOR

Top

Dan Kogai, <dankogai at dan.co.jp>

BUGS

Top

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.

SUPPORT

Top

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

ACKNOWLEDGEMENTS

Top

None so far.

COPYRIGHT & LICENSE

Top


Tie-Expression documentation  | view source Contained in the Tie-Expression distribution.