Martin Owens > Template-Direct > Template::Direct::Maths

Download:
Template-Direct-1.16.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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
syntax highlighting: