The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

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

SYNOPSIS

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

DISCUSSION

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

Percent::Underscore

EXPORT

Nothing.

AUTHOR

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

BUGS

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

You can find documentation for this module with the perldoc command.

    perldoc Tie::Expression

You can also look for information at:

ACKNOWLEDGEMENTS

None so far.

COPYRIGHT & LICENSE

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.