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

NAME

Template::Direct::Maths - Handle a mathimatical query

DESCRIPTION

  Provide support for doing simple calculations (SIMPLE ONLY!)

METHODS

$class->new( $index, $line )

  Create a new instance object.

$maths->tagName( )

  Returns 'maths'

$maths->singleTag( )

  Returns true

$maths->compile( )

  Modifies a template with the data calculated.

$maths->parseStatement( $s, $data )

  Return an array structure of values to calculate.

$maths->calculate( $statement )

  Return a result based on calulating the statement.

AUTHOR

  Martin Owens - Copyright 2008, AGPL